Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to popup a form from an Usercontrol

Status
Not open for further replies.

BeejCyr

MIS
Aug 1, 2002
49
US
I am wrtting a usercontrol that manages the reading and writting of records to a table. It validates data and handles security and what not. In addition to this, I would like to provide a method that, when called, pops up a form that gives the user a nicely done editing screen to add and browse the records. The common diaglog control does something like what I am looking for. Set some properties then execute a method and you get a form. I would also like this control to be invisible at run time.

Now in my usercontrol project I have the class code and I have added a form to the project on which I have built the user interface. However, in the sub that is supposed to display the form frmedit.show I get an error indicating that frmedit is an unknown object. How can I have my control show this form? Are there examples of this out there I can look at?
 
I just tried it, created a usercontrol that shows a form, and with mine form1.show worked just fine. Calling from the usercontrol object or from the class makes no difference. The form still shows ... ?
 
THanks for getting back to me but I figured it out. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top