Computer Programming I: Lesson 3.01 - Apply Controls Associated With Visual Studio Form

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Ways to Create a Project

-*File > New > Project* -Click *New Project button* -In *Recent Projects, Create: Project, click Project*

Adding a Control

-Click a control in the Toolbox and then click the form -The pointer shape displays an icon similar to the selected control. -There are snap-to lines that you can use for alignment.

Moving an object

-Drag a control object to move it. -You can select a group to move together

4. The Toolbox

-The Toolbox Contains the Controls for Designing a Form. -The Toolbox Tab Appears on the Left of the IDE. Some examples: Buttons Labels Option Buttons Check Boxes List Boxes

solution file

.sln

project file

.vbproj

ComboBox

A drop down menu that also allows a user to type in an entry or select an option. Combines a ListBox and a TextBox

Common Controls

Button TextBox Label ListBox ComboBox CheckBox RadioButton PictureBox

Creating a New Project

Choose your programming language Visual Basic Choose the template Windows Form Application Change the Name Change the Location to where you are saving your work. Click OK

To Make the Toolbox Visible

Click Toolbox Tab and Click the Virtual Push Pin. View Menu > Toolbox Click the Toolbox butto

The Editor Window

Contain Your Program Code.

The Editor Window: Class Name List

Contains all control objects on form

The Editor Window: Method Name List

Contains all methods for the chosen object

The Main Tools Visible Are:

Designer Window Solution Explorer Window Properties Window, and The Toolbox

1. Designer Window

Format the form To Change the size of the Form: -*Click and Drag* the *Sizing Handles* on the *Corner* of the Form or -Change the *Size Properties* that's measured in *pixels* on the *Properties Window*.

Form Designs

Remember that a balanced and pleasing design to a form is important. Try to make your form appear as professional as possible. When applying background color to your form, consider the user and/or culture

3. Properties Window

The Properties Window is Utilized to Change the Characteristics of Your Form During Design Time. Name Font AutoSize BackColor ForeColor Enabled Size Text

2. Solution Explorer Window

The Solution Explorer window displays a list of the projects in the solution and the items contained in the project. Options: Refresh Properties Show All Files View Code View Designer My Project files Source Code File

RadioButton

Used with group boxes Allows user to make only one choice from the options in the group.

CheckBox

Usually found in a group box Allows users to provide multiple inputs to answer a question

Button

clicked by the user to perform an action or group of actions.

ListBox

used to display a list of items for a user to select. Multiple items can be selected.

PictureBox

used to display a picture or image to the user.

Label

used to display information to the user either to identify another object, provide instructions, or display output.

TextBox

used to gather input from a user or to display text back to the user.


Ensembles d'études connexes

Level H, Unit 11: Choosing the Right Word

View Set

SIE 7 The Securities Act of 1933 and Primary Markets

View Set

Chapter 4: Introduction to Valuation: The Time Value of Money

View Set

Chapter One- Introduction to Geography

View Set

College Success Skills final Exam worth 500

View Set

International Accounting : Leases

View Set