Results 1 to 3 of 3

Thread: Create Object

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    How do you use VB's create object Function, I want to know if I can use it to create a picturebox inside a class module so I can use some of it's methods, eg it's scaleX and scaleY functions from inside a class module without having a picturebox passed in.

    Does anyone know ?

  2. #2
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633
    Hello Sam!

    Once my email is up again, I will send you a sample of CreateObject, GetObject, and DDE.


    Maybe, I am missing something here but inside the class module, can't you declare your variable as a picturebox?
    Chemically Formulated As:
    Dr. Nitro

  3. #3
    Guest
    Code:
    Dim MyPic as object
    set mypic = createobject("VB.PictureBox")
    I think this should do the trick, but dont quote me on it.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width