Reputation: 6500
I have added a new window to the project and the name of the window is Actwindow
. How can I open this window?
I tried using Actwindow=new Window();
but it does not work.
The window code is:
using System;
namespace myproject
{
public partial class Actwindow : Gtk.Window
{
public Actwindow () :
base (Gtk.WindowType.Toplevel)
{
this.Build ();
}
}
}
What am I doing wrong?
Upvotes: 0
Views: 497
Reputation: 2940
Actwindow myWindow = new Actwindow();
myWindow.Show(); // or similar
Upvotes: 2