回 帖 发 新 帖 刷新版面

主题:请教高手

请教一下大家,Dialogresult属性怎么用啊?[em2]

回复列表 (共1个回复)

沙发

Private Sub InitializeMyButton()
    ' Create and initialize a Button.
    Dim button1 As New Button()
    
    ' Set the button to return a value of OK when clicked.
    button1.DialogResult = DialogResult.OK
    
    ' Add the button to the form.
    Controls.Add(button1)
End Sub 'InitializeMyButton

我来回复

您尚未登录,请登录后再回复。点此登录或注册