0% found this document useful (0 votes)
48 views1 page

Public Class Form3

This Visual Basic code defines a form with two buttons and menu options to exit the form or set a label text to "Hi!" or "Bye!". Button1 and the HI menu option set the label text to "Hi!", Button2 and the BYE menu option set the label text to "Bye!", and the Exit menu option closes the form.

Uploaded by

api-347017345
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views1 page

Public Class Form3

This Visual Basic code defines a form with two buttons and menu options to exit the form or set a label text to "Hi!" or "Bye!". Button1 and the HI menu option set the label text to "Hi!", Button2 and the BYE menu option set the label text to "Bye!", and the Exit menu option closes the form.

Uploaded by

api-347017345
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Public Class Form1

Private Sub ExitToolStripMenuItem_Click(ByVal sender As [Link], ByVal e As


[Link]) Handles [Link]
[Link]()
End Sub

Private Sub Button1_Click(ByVal sender As [Link], ByVal e As [Link])


Handles [Link]
[Link] = "HI!"
End Sub

Private Sub Button2_Click(ByVal sender As [Link], ByVal e As [Link])


Handles [Link]
[Link] = "Bye!"
End Sub

Private Sub HIToolStripMenuItem_Click(ByVal sender As [Link], ByVal e As


[Link]) Handles [Link]
[Link] = "Hi!"
End Sub

Private Sub BYEToolStripMenuItem_Click(ByVal sender As [Link], ByVal e As


[Link]) Handles [Link]
[Link] = "Bye!"
End Sub
End Class

You might also like