【问题标题】:Open existing window in Gtk#在 Gtk 中打开现有窗口#
【发布时间】:2015-06-03 11:47:22
【问题描述】:

我在项目中添加了一个新窗口,窗口的名称是Actwindow。如何打开这个窗口?

我尝试使用Actwindow=new Window();,但它不起作用。

窗口代码为:

using System;

namespace myproject
{
    public partial class Actwindow : Gtk.Window
    {
        public Actwindow () :
            base (Gtk.WindowType.Toplevel)
        {
            this.Build ();
        }
    }
}

我做错了什么?

【问题讨论】:

    标签: c# .net mono gtk gtk#


    【解决方案1】:
    Actwindow myWindow = new Actwindow();
    myWindow.Show(); // or similar
    

    【讨论】:

    • 我已经尝试过了。问题是命名空间设置不正确。谢谢
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-03-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多