feurich Posted October 21, 2003 Posted October 21, 2003 I'm writing a program that gets information out of an access database. From this information I have to generate Controls on a form. This already works when I do this in code of form where the controls need to be made. To make it more generic I'm trying to make the controls from within a class module but I'm unable to create the controls on the main form. Could anyone tell me what the standard way is to generate control from within a class module or give some guideline on how to do it?? Quote Trust the Universe
*Experts* mutant Posted October 21, 2003 *Experts* Posted October 21, 2003 The process would be the same except that you would need to get to instance of the form you want to add controls to, to the method that creates them. For example pass it in as a parameter to the method. Quote
feurich Posted October 21, 2003 Author Posted October 21, 2003 Thanks for the very speedy reply. Is there a example of the code your talking about. I saw an other thread on this but wasn't really able to apply it to my problem. Quote Trust the Universe
feurich Posted October 21, 2003 Author Posted October 21, 2003 OK..It's working Just gave the form name Me allong with the other parameters of the sub. Thanks a mil Quote Trust the Universe
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.