恍惚之间

梦...

ShowMyDialogBox

Public Sub ShowMyDialogBox()
    Dim testDialog As New Form2()
   
    ' Show testDialog as a modal dialog and determine if DialogResult = OK.
    If testDialog.ShowDialog(Me) = System.Windows.Forms.DialogResult.OK Then
        ' Read the contents of testDialog's TextBox.
        txtResult.Text = testDialog.TextBox1.Text
    Else
        txtResult.Text = "Cancelled"
    End If
    testDialog.Dispose()
End Sub 'ShowMyDialogBox

posted on 2006-11-23 20:44  Red Hu  阅读(...)  评论(...编辑  收藏

My Links

Blog Stats