I want to create a listbox or grid on a form dynamically. However, I do not want to create the form dynamically. I need to add code to a method within the listbox that was added to the form. However, in order to do that I have to define the class and one can not add the define class into a method of a form.
Therefore, I would have to store all of the code that dynamically generates the form into a seperate prg. I'd rather not do that. I rather have everything contained within the form.
Is there a way to add an object to a form dynamically using the base class instead of define class and then more importantly, add code to one of it's methods without using the define class code block?
Best Regards,
Lee Roy J. Pitre, Jr, AAS, BA, MS
Pitre Computer Consultant & Associates
http://pitres.us