techno
techno

Reputation: 6500

Open existing window in Gtk#

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

Answers (1)

Jens Meinecke
Jens Meinecke

Reputation: 2940

Actwindow myWindow = new Actwindow();
myWindow.Show(); // or similar

Upvotes: 2

Related Questions