Hi,
I need to cast a FORM that implements something to his original form to get its procedures. How can I do that?
Printable View
Hi,
I need to cast a FORM that implements something to his original form to get its procedures. How can I do that?
I have no clue what you are trying to do specifically, but in general, you can do a kind of (void *) cast in VB by "Set"-ing an Object = to an object of type "Object":Quote:
Originally Posted by Daok
VB Code:
Dim frmThing as Form Dim objThing as Object ' Set objThing = frmThing ' ' From here, objThing is treated as a generic Object, and will be Late-Bound.
Dim frm As FormQuote:
Originally Posted by Daok
Set frm = New Form1
frm.Show
You may want to set Caption, Tag for each new instance so you can differenciate between the forms code wise.
Thank you guys,
Rhino solution work like a charm! (Thx Dave, you had the theory of what I want).
Bye!
Daok
No problem, you're welcome. :wave: