DeathFox Member Posts: 57 From: Registered: 04-25-2006 |
How do i display an object from one form to another? Like I have a button stored in Form2, but I wanna display that button in Form1. How do I do it? |
kenman![]() Member Posts: 518 From: Janesville WI Registered: 08-31-2006 |
Don't know that you can do that. Might be easier to create dual instances in each form and just bring them visible when you need to. |
jestermax![]() Member Posts: 1064 From: Ontario, Canada Registered: 06-21-2006 |
you need global access to that control. back in the VB6 days you would add a module to the project and store the button/image/widget there. and that way your forms each had access |
bwoogie![]() Member Posts: 380 From: kansas usa Registered: 03-12-2005 |
instead, just create a new module with a public sub containing the code for the button to preform when it's clicked. and then have two buttons, one on each form. and when those buttons are clicked you will call the sub in the module. ------------------ |
spade89![]() Member Posts: 561 From: houston,tx Registered: 11-28-2006 |
or make a button activex. or make two buttons and make the one call the function of the other. ------------------ |
DeathFox Member Posts: 57 From: Registered: 04-25-2006 |
Thanks. Anyways, one more problem about buttons. Anyone know a surce code, article to make circular buttons? |