Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 is it possible to use load to make an object
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Phazor




PostPosted: Tue Jun 03, 2008 12:23 am   Post subject: is it possible to use load to make an object

is there a way to use the load function to make an object that doesn't exist in design-time?
the only way i've used it before was to load a winsocket element in an array.
i would like to know if it is possible to load an object, say a picturebox, without already having a picturebox on the form?
another question i have is: is there a variable i can use to hold an image?

thnx in advance for any help Confused
Sponsor
Sponsor
Sponsor
sponsor
btiffin




PostPosted: Tue Jun 03, 2008 3:33 am   Post subject: RE:is it possible to use load to make an object

For the first part, check out this link

http://visualbasic.about.com/od/usingvbnet/a/MainRoutine01.htm

For image data (which really is just a binary), one possibility is GetChunk and a Byte variable

Dim imgData() as Byte
Dim szImg as Long
' set szImg with the size of the data,
' perhaps using .ActualSize or somesuch
' then use .GetChunk(szImg) on the source, perhaps recordSet.Fields("imgField").

Cheers
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: