Microsoft Visual Basic 2010 Step by Step eBook

(Tina Meador) #1

Chapter 10 Creating Modules and Procedures 265


Object Property Setting
TextBox2 Multiline
Name
ReadOnly
ScrollBars
TabStop

True
txtMkt
True
Vertical
False
Label1 Font
Name
Text

Bold
lblSales
“Sales”
Label2 Font
Name
Text

Bold
lblMkt
“Marketing”
Button1 Name
Text

btnSales
“Add Name”
Button2 Name
Text

btnMkt
“Add Name”
Button3 Name
Text

btnQuit
“Quit”
Form1 Text “Assign Department
Teams”


  1. Resize and position the objects so that your form looks similar to this:


Now you’ll add a module and create the general-purpose AddName Sub procedure.


  1. On the Project menu, click the Add New Item command, select the Module template,
    and then click Add.
    A new module appears in the Code Editor.

Free download pdf