Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Help - Dynamic event code -


Message #1 by "Avinash" <avinashraj@h...> on Sun, 26 Aug 2001 13:22:53
The way to get events from dynamically added controls is to use the
ObjectEvent of the vbObjectExtender object (it works great.)
See the online help for examples.
You can also use the Width, Height properties (or the Move method)
of the vbControlExtender to resize the created control.
 
m.

-----Original Message-----
From: Avinash [mailto:avinashraj@h...]
Sent: Sunday, August 26, 2001 6:23 AM
To: professional vb
Subject: [pro_vb] Help - Dynamic event code -


Hi,

I am adding some controls (mostly standard VB controls) on to a form 
dynamically using controls.add. 

I need to create a IDE kind of feel to my app. I need to allow users to 
add controls to forms and use them. 
Adding controls I have managed with controls.add. How ever I have not been 
able to write any event code for the controls I have added. 
This becomes very important if i have to allow drag functionality to the 
added controls.

The event code itself will be pretty simple. but i cant think ofhow i can 
get this done,

pl let me know if there is a way i can do this. Also is there some way i 
can let my users resize controls once they add it to the form.

Thanks and Regards,
Avinash



  Return to Index