qqq hi there guys got a question right here, what can be the problem with this? I mean I was calling the Form1 which I have designed as a login form so whenever you click the login button the Form1 is supposed to show up, but then I get an error I do not entirely understand. anyone who can interpret this to me please... thank you!

qqq1

here is the attachment

The problem seems to be that you're not initializing the Form; either that or Form1 is in another namespace by accident (highly unlikely but can happen). To resolve this try:

Form1 f1 = new Form1();
f1.Show();
Hope it helps,
Jamie

Check that Form1 and Mainform are in the same namespace...it is hard to tell without seeing the class definitions.

That is probably the case.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.