CharlotteR
MIS
Im just learning how to use VB and though im using VB.Net i only have examples from VB ver.6
Anyway - im attempting to create small program with a message box appearing but am having trouble with the display.caption bit:
Private Sub Test_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Test.Click
Dim testmsg As Integer
Dim Display As
testmsg = MsgBox("Click to test", 1, "Test Message"
If testmsg = 1 Then
Display.Caption = "Testing Successful"
Else
Display.Caption = "Testing Fail"
End If
End Sub
the problem is it says the word Display has not been declared, but from the notes ive got it doesnt need to be. can anyone help? what should i declare it as???
thanks
Anyway - im attempting to create small program with a message box appearing but am having trouble with the display.caption bit:
Private Sub Test_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Test.Click
Dim testmsg As Integer
Dim Display As
testmsg = MsgBox("Click to test", 1, "Test Message"
If testmsg = 1 Then
Display.Caption = "Testing Successful"
Else
Display.Caption = "Testing Fail"
End If
End Sub
the problem is it says the word Display has not been declared, but from the notes ive got it doesnt need to be. can anyone help? what should i declare it as???
thanks