Opening the Properties Window and Changing Form Properties
Besides a Project Explorer window, each form (or control) contains a Properties window. As stated in “Running a Visual Basic Program,” a property is a named attribute of an object. Properties are...
View ArticleDisabling the Minimize Button
With the first two border styles, the Minimize button appears unless it is disabled by the Minbutton property to change the setting to False. (With this property, there are only two choices: True and...
View ArticleWriting Visual Basic Instructions
The final type of window discussed here is the Code window. To open the Code window for a form, click the Project Explorer and click View Code, or choose View, Code. This opens the window shown in...
View ArticleWriting Visual Basic Instructions-2
Exercise 2.6 Changing the Font Size Property In this and the next two exercises, you change the properties of the form used in Exercise 2.5. Choose File, Open Project, if necessary, and select View,...
View ArticleCompiled Application from Standard EXE Project
This final objective asks you create an executable file from a completed Visual Basic application. Two options are available: Under the Compile tab of the Project Properties dialog box, you can select...
View ArticleAdding Controls and Event Procedures to Form Modules
So far you have learned how to add controls to a form, but you have not yet done it. In this chapter, you add controls to form modules and attach event procedures (Visual Basic code) to a control....
View ArticleAdding a Control to a Form and Setting its Properties
With the preceding brief overview of several different types of controls fresh in your mind, consider the procedure for placing a control on a form, and once positioned, changing the properties of a...
View ArticleSetting Properties for a Control
After adding a control to a form, the properties of the control can be modified. Control properties work in the same way as form properties: They can be used to change the appearance or the behavior...
View ArticleCoding an Event Procedure for a Control
Coding an Event Procedure for a Control Adding a control to a form and setting the control properties set the scene for adding a procedure. Remember that a control will do nothing to an event-oriented...
View ArticleCoded Statements and Methods
In the preceding procedure, you wrote several coded instructions, which introduced two different programming statements and a method: the Dim statement, an assignment statement, and the Print method....
View Article