eternal_apocalypse_202
Member
- Joined
- Jul 30, 2006
- Messages
- 10
- Programming Experience
- 1-3
Ok, heres my problem dudes... i have an app with panels created at runtime, and these panels all have controls on them... the compiler i wrote creates these controls at runtime. heres the issue.. i have a loop to scan through the controls on the panel, get its control type and add the text to the compiler from there.... BUT! it works fine with a textbox, but vb.net wont let me compile with the image property..
Im using this syntax to refer to the controls on the panel
compiler.text = Me.Panels(currentpanel).Controls(currentcontrol).Image
and vb says image is not a member of windows.forms.control
but how can vb tell me that when it will only know wat type of control it is AT RUNTIME?!?!
ive tried using CType to convert the image to a string, but nothing....
any ideas on this one? sorry im not gd at explaining
cheers!
Im using this syntax to refer to the controls on the panel
compiler.text = Me.Panels(currentpanel).Controls(currentcontrol).Image
and vb says image is not a member of windows.forms.control
but how can vb tell me that when it will only know wat type of control it is AT RUNTIME?!?!
ive tried using CType to convert the image to a string, but nothing....
any ideas on this one? sorry im not gd at explaining
cheers!