Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
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??
Trust the Universe
  • *Experts*
Posted
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.
Posted

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.

Trust the Universe

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...