Using System class in VB6


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: Using System class in VB6

Hybrid View

  1. #1
    Join Date
    May 2012
    Posts
    5

    Post Using System class in VB6

    Hi,
    I'm new to Vb6 and its probably a silly question, but how do i use the namespace System in Visual Basic 6? I have added a reference to the System, System_Windows_Forms and System_Drawing namespace, but i don't see System.Drawings.Graphics and many other classes. Am i missing something? Do i need to import the namespace? I have coded in VB2010 and i'm not sure about how it is in 2006 .Please help me out. Thanks!

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    You cannot use .NET namespaces in VB6.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    May 2012
    Posts
    5
    hi,
    Thanks for the reply! So then i cant use graphics or any of those? I'm using VB6 as i have an ActiveX control as a UI on the form, and i would also like to do operations such as displaying a video and drawing on an image in a picturebox on the UI. How else could i get to doing this? Thanks!

  4. #4
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Quote Originally Posted by bizzare View Post
    How else could i get to doing this?
    Switch from using VB6 to using VB.NET
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  5. #5
    Join Date
    May 2012
    Posts
    5
    Hi,
    Thanks for the information. Unfortunately i'm contsraint to using VB6 as i am using API's for the Winspec32 software, which is supported by versions other than .NET. But i also need to use graphics to draw on the image. Please help me out with what i could do.
    Thanks,
    Hyma

  6. #6
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    VB6 is not the best development platform in the world for graphics. I did a quick search and found these links.

    http://www.vb6.us/tutorials/Graphics
    http://www.vbtutor.net/vb6/lesson18.html
    http://www.dreamincode.net/forums/to...g-a-sketchpad/

    There may be more out there if you want to spend some time doing some digging.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Problem with inner class
    By IronJack in forum Java
    Replies: 12
    Last Post: 08-08-2006, 07:52 PM
  2. JDOM Errors & How to set the classpath
    By kpandya in forum Java
    Replies: 0
    Last Post: 01-14-2006, 08:01 PM
  3. Replies: 205
    Last Post: 09-26-2001, 02:37 PM
  4. How To Do It - Shared Class Variables Part IV
    By Patrick Ireland in forum .NET
    Replies: 3
    Last Post: 05-07-2001, 04:04 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center