Advertisement
TermSpar

Basic Program (BenAndChris)

Sep 11th, 2015
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.53 KB | None | 0 0
  1. Public Class Form1
  2.  
  3.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  4.         lblDisplay.Text = "Hello World"
  5.         Button2.Enabled = True
  6.     End Sub
  7.  
  8.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  9.         Application.Exit()
  10.     End Sub
  11.  
  12.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  13.         Button2.Enabled = False
  14.     End Sub
  15. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement