CSC1180

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

Master your semester with Scribd & The New York Times

Special offer for students: Only $4.99/month.

Master your semester with Scribd & The New York Times

Cancel anytime.