Introduction to VB programming Dr. John P. Abraham UTPA
Applications Console Window Output appears in console window From Visual studio choose VB and choose a new project, and choose Console Application, Give it a name. Follow Chapter 3. Window
Demo of Hello program This was your assignment from your first class.
Visual Basic Controls Choose Windows forms application What you see is the IDE (Integrated Development Environment) Use Sizing handle to make the form Adjust the size of the properties window Tac the toolbox Use common controls Start placing objects on the form Place a button, label it Exit and add code me.close()
Lab Assignment Due Monday Explain input Public Class FrmBreak1 Dim num As Integer Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnReadNum.Click num = InputBox("Enter a Number", "Read Number") lblNumber.Text = num End Sub End Class
Program submission Program print out Program Run Place them in a manila folder