on the fly events for on the fly control

F

feby

I have situation here..
the scenario is,

private sub form.onload
dim a() as new button
panel1.controls.add(a(0))
panel1.controls.add(a(1))
end sub

now..how can I have events for those buttons on the fly??
i mean..a(0) for form2.showdialog()
and a(1) for form3.showdialog()

need advise, if you can give me sample code in vb I'll appreciate it
many thanks..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top