is it possible to use load to make an object
Author |
Message |
Phazor
|
Posted: 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 Confused](http://compsci.ca/v3/images/smiles/icon_confused.gif) |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
btiffin
![](http://compsci.ca/v3/uploads/user_avatars/189169540547b535e50e4a7.jpg)
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
|
|