在Gtk中打开现有窗口#

时间:2015-06-03 11:47:22

标签: c# .net mono gtk gtk#

我为项目添加了一个新窗口,窗口名称为Actwindow。我怎么能打开这个窗口?

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

窗口代码是:

using System;

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

我做错了什么?

1 个答案:

答案 0 :(得分:2)

Private Sub cmdPrintIndRep_Click()

Dim strUser As String
strUser = Forms!frmsupresults!subfrmUsrRes.Form!UserName

    If Left(strUser, 2) = "t8" Or Left(strUser, 2) = "T8" Then
        DoCmd.OpenReport "FedInvest - ISSR Recertification Report", acViewPreview
    ElseIf Left(strUser, 2) = "p9" Or Left(strUser, 2) = "P9" Then
        DoCmd.OpenReport "Courts - ISSR Recertification Report", acViewPreview
    Else
        DoCmd.OpenReport "FedInvest - ISSR Internal Users Recertification Report", _ 
                         acViewPreview
    End If
End Sub