Are you sure?
This action might not be possible to undo. Are you sure you want to continue?
Lab Exercise 1 – Visual Basic .NET Environment and User Interface Design
Designer View
Name = frmMain Text = Hello World Name = lblSlogan Text = Visual Basic .NET Name = btnDisplay Text = Display Name = txtHelloWorld Text = blank Name = btnInvisible Text = Invisible Name = btnExit Text = Exit Name = btnVisible Text = Visible
Code View
'Project: Lab 1 – Hello World 'Programmer: <your name> 'Date: <today's date> Public Class frmHelloWorld Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click Me.Close() End Sub Private Sub btnDisplay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisplay.Click Me.txtHelloWorld.Text = "Hello World" End Sub Private Sub btnVisible_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnVisible.Click Me.lblSlogan.Visible = True End Sub Private Sub btnInvisible_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnInvisible.Click Me.lblSlogan.Visible = False End Sub End Class
Page 1 of 1
This action might not be possible to undo. Are you sure you want to continue?