A
anthony
I tried sth i did b4 in VB, now in VB.NET, but since the form is created
every time, the following code would not work because MsgBox.Visible is
always false, any idea? Thanks!
Public Function MyMsgBox(ByVal strMsg As String, ByVal MsgType As Integer,
ByVal strTitle As String) As Integer
Dim MsgBox As New frmMsgBox
If MsgBox.Visible = False Then
MsgBox.Text = strTitle
MsgBox.MsgType = MsgType
MsgBox.lblMsg.Text = strMsg
MsgBox.ShowDialog()
MyMsgBox = MsgBox.Response
MsgBox.Close()
End If
End Function
every time, the following code would not work because MsgBox.Visible is
always false, any idea? Thanks!
Public Function MyMsgBox(ByVal strMsg As String, ByVal MsgType As Integer,
ByVal strTitle As String) As Integer
Dim MsgBox As New frmMsgBox
If MsgBox.Visible = False Then
MsgBox.Text = strTitle
MsgBox.MsgType = MsgType
MsgBox.lblMsg.Text = strMsg
MsgBox.ShowDialog()
MyMsgBox = MsgBox.Response
MsgBox.Close()
End If
End Function