Is there any way to add a property or an event in a standard VB form?
Printable View
Is there any way to add a property or an event in a standard VB form?
I found something in VB's help (under Adding an Event to a Form) but it's not very convenient. Is there another way? Perhaps using WinAPI? I have a routine which i use to load forms. I want to be able (inside that routine) to add an event to each form i load.
Events, i don't know. But you can add your own properties with the SetProp API.
What do you want to do? Maybe you can create functions in the forms with fixed names to call (instead of raising an event).
Crazy D @ Work :-)
Even if i could create an event programmatically when i loaded a form, how would i put code in it since in development mode it wouldn't exist??? Silly me. Forget it. One of my crazy thoughts... :)
SetProp you say. Hmmm..... I don't think it will be helpful for what i want but i'll have it in mind. Thanx for the suggestion.