How to show one form from another form

pjslevin

Member
Joined
Oct 28, 2007
Messages
10
Programming Experience
10+
When I created a vb project, it created Form1.vb for me. I am naming this form frmMain. Then I went to the Project meu and selected Add windows form. I named the formfile frmCustomers.vb and I named the form itself frmCustomers as well. I tried to perform a frmCustomers.Show() function from frmmain to dispaly the new window.

However, I received the following error:

"Reference to a non-shared member requires an object reference."

these are not MDI forms. Any suggestions?
 
Back
Top