Msg

dim 一个新的Objct 是我在老V里没有用过的  test了一下
为新的引用留下伏笔
再test了一下老的,还是可以,呵呵

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        'Dim answer As Object
        Dim message1 As String
        Dim message2 As String
        Dim caption As String
        caption = "检查密码"
        message1 = "密码正确"
        message2 = "密码错误"
        If TextBox1.Text = "user" And TextBox2.Text = "111" Then
            ' answer = MsgBox(message1, 1, caption)
            MsgBox(message1, 1, caption)
        Else
            'answer = MsgBox(message2, 1, caption)
            MsgBox(message2, 1, caption)
        End If
    End Sub

相关文章:

  • 2022-12-23
  • 2021-09-27
  • 2021-06-18
  • 2021-09-12
  • 2022-12-23
  • 2021-08-23
  • 2021-08-18
猜你喜欢
  • 2021-04-03
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案