
-----------------------------------
Phazor
Tue Jun 03, 2008 12:23 am

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 :?

-----------------------------------
btiffin
Tue Jun 03, 2008 3:33 am

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
