Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Winforms 如何检查WinForm';子例程中的s System.Windows.Forms.FormClosingEventArgs_Winforms_Vb.net - Fatal编程技术网

Winforms 如何检查WinForm';子例程中的s System.Windows.Forms.FormClosingEventArgs

Winforms 如何检查WinForm';子例程中的s System.Windows.Forms.FormClosingEventArgs,winforms,vb.net,Winforms,Vb.net,FMECA是一个类,它的成员是a 在特定的子例程中,我有一个FMECA类的对象,我需要访问m_fmecaWin的系统事件 Private Sub initialiseFMECATableFromLoad(ByVal fmeca As GraphFMECA, ByVal detTable As DataTable) fmeca.m_fmecaWin.chkListBox.AllowGrayed = False ' need to mark e As Sys

FMECA
是一个类,它的成员是a

在特定的子例程中,我有一个
FMECA
类的对象,我需要访问
m_fmecaWin
的系统事件

    Private Sub initialiseFMECATableFromLoad(ByVal fmeca As GraphFMECA, ByVal detTable As DataTable)

        fmeca.m_fmecaWin.chkListBox.AllowGrayed = False
        ' need to mark e As System.Windows.Forms.FormClosingEventArgs; e.Cancel = True ' to be reviewed later 

        If fmeca.m_fmecaWin.chkListBox.Items.Count <> 0 Then Exit Sub
        For Each col As GridColumn In fmeca.m_fmecaWin.GridView1.Columns
            fmeca.m_fmecaWin.chkListBox.Items.Add(col.FieldName, col.Caption, CheckState.Checked, True)
        Next
    End Sub
私有子初始值为fmecatablefromload(ByVal fmeca为graphmeca,ByVal detTable为DataTable)
fmeca.m_fmecaWin.chkListBox.AllowGrayed=False
'需要将e标记为System.Windows.Forms.FormClosingEventArgs;e、 Cancel=True'待稍后查看
如果fmeca.m_fmecaWin.chkListBox.Items.Count为0,则退出子系统
对于fmeca.m_fmecaWin.GridView1.Columns中作为GridColumn的每个列
fmeca.m_fmecaWin.chkListBox.Items.Add(col.FieldName,col.Caption,CheckState.Checked,True)
下一个
端接头
您认为是否可以访问上述子例程中的
m_fmeca
FormClosingEventArgs


多谢各位

您能在例行程序中处理这里的结束事件吗

AddHandler fmeca.m_fmecaWin.FormClosing, Sub (sender As Object, e As System.Windows.Forms.FormClosingEventArgs) e.Cancel = True

我的VB Lambdas可能有点生锈了。。。但我认为语法是正确的…

您能告诉我们为什么要访问该值吗?