user3379482
user3379482

Reputation: 567

Unable to call windows and dialogs from MainWindow

I've added a new window to the solution (Add -> new window)
to start it I wrote:

Wndw1 w = new Wndow1 ();
w.Show ();

But it gives an error

/home/spam/del2/del2/jhj.cs(3,3): Error CS0246: The type or namespace name `Wndw1' could not be found. Are you missing `del2' using directive? (CS0246) (del2)

Even though, the code works in any class other than MainWindow

Upvotes: 1

Views: 58

Answers (1)

Obadah Hammoud
Obadah Hammoud

Reputation: 572

When You create a new gtk# project, main window will appear automatically
when you create a class later it will be in the namespace, while mainwindow won't
so..add a namespace!

Upvotes: 1

Related Questions