在用户看到第一个 MsgBox 后,我如何让另一个 MsgBox 出现?

How would I make a different MsgBox appear after the user saw the first one?

我想知道如何做到这一点,当用户单击一个按钮时,就会出现一个 MsgBox,例如,带有单词 "cat"。现在,由于用户看到了猫这个词,如果他再次单击该按钮,在程序打开的剩余时间内,它会显示 "You already know there is a cat here!".

如果可能,我将如何处理?

Private Dim AlreadySawTheCat as Boolean = False

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  If AlreadySawTheCat Then
    MessageBox.Show("You already know there is a cat here!")
  Else
    MessageBox.Show("There is a cat here!")
    AlreadySawTheCat = True
  End If
End Sub