How do I write code to an event on a newly created control?

rede96

Registered User.
Local time
Today, 22:12
Joined
Apr 2, 2004
Messages
134
I am creating about 80 controls on a form using the CreateControl method.

Is there a way that I can also create some code for the 'OnClick' event at the same time?

Thanks
Red
 
right click on the control>properties, click the event tap, scroll down to the "on click", from the drop down selection, choose event procedure
 
Sorry, my bad. What I was actually looking to do was to create the OnClick event whislt creating the controls.

I've been at it all afternoon and have the CreateEventProc. This should do what I need.

Thanks anyway.

Red

It's simple when you know how!
 

Users who are viewing this thread

Back
Top Bottom