user1352057
user1352057

Reputation: 3182

c# form load order issue

Having a bit of a strange issue trying to change my form load order.

I believe to change the load order, I simply need to go to the Program.cs file and change this line:

Application.Run(new AdminPage()); - This is what it is currently set too:

to this -Application.Run(new AdminLogin());

This is giving me the following error:

The type or namespace name 'AdminLogin' could not be found (are you missing a using directive or an assembly reference?)

Here is a screenshot to show the layout of my project. I cant see what Im doing wrong here?

enter image description here

Upvotes: 0

Views: 123

Answers (2)

Shryme
Shryme

Reputation: 1570

I don't have enough rep to comment the answer of Axarydax so i'll answer here.

You can simply erase the ".pics" of your namespace in AdminLogin so that it become adminPanel instead of adminPanel.pics

Upvotes: 0

Axarydax
Axarydax

Reputation: 16603

Is the AdminLogin class in the same namespace as Program? If not, use using statement to use that namespace.

Upvotes: 3

Related Questions