Microsoft Visual Basic 2012 Programming for Industrial Applications-Basic Tutorial

The basics of the Visual Studio 2012 for Windows Desktop Integrated Development Environment (IDE) for writing, running and debugging your applications for different platforms.

Visual Studio’s help features
Key commands contained in the IDE’s menus and tool-bar
The purpose of the various kinds of windows in the Visual Studio 2012 for Windows Desktop IDE.How to create, compile and execute a simple Visual Basic app that displays text and an image

Introduction-Visual Studio 2012 is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging applications (also called apps) written in various .NET programming languages.This Study provides an overview of the Visual Studio 2012 IDE Shows how to create a simple Visual Basic app by dragging and dropping predefined building blocks into place.A technique known as visual app development.
IDE Overview
Once Visual Studio 2012 begins execution, the Start Page displays
The Start Page contains a list of links to Visual Studio resources and web-based resources
At any time, you can return to the Start Page by selecting VIEW > Start Page

The Recent Projects section shows solutions you have been working on
The links in the Get Started tab provide information about the programming languages supported by Visual Studio and various learning resources
An Internet connection is required for the IDE to access most of this information
The IDE also has an internal web browser
Go to VIEW > Other Windows > Web Browser

Creating a New Project
Select File > New Project... to create a new project
On the Start Page, just click the link labeled New Project…
A project is a group of related files, such as the Visual Basic code and any images that might make up an app.Visual Studio organizes apps into projects and solutions, which contain one or more projects
However, most apps consist of a solution containing a single project.

When you select FILE > New Project… or click the New Project… link on the Start Page, the New Project dialog displays

Visual Studio 2012 templates:
Project types users can create in Visual Basic and other languages
Project templates are the project types users can create in Visual Basic.In this course, we will concentrate on Windows Forms applications.A Windows Forms application has a graphical user interface (GUI).Collectively, the Form and controls make up the app’s GUI.Users enter data into the app by typing at the keyboard, by clicking the mouse buttons and in a variety of other ways.Programs use the GUI to display instructions and other information for users to view.The figure shows a dialog in which a control’s font properties can be modified.
[next] Menu Bar and Tool-bar
Commands for managing the IDE and for developing, maintaining and executing apps are contained in menus
Located on the menu bar of the IDE
The set of menus displayed depends on what you are currently doing in the IDE

You can customize which tool-bars are displayed by selecting View > Toolbars
Each tool-bar you select is displayed at the top of the Visual Studio window

Positioning the mouse pointer over an icon highlights it and, after a brief pause, displays a description called a tool tip.

Navigating the Visual Studio IDE
The IDE provides windows for accessing project files and customizing controls
  1. Solution Explorer Window
  2. Toolbox Window
  3. Properties Window
Visual Studio provides a space-saving feature called auto-hide
When auto-hide is enabled, a tab appears along the edge of the IDE window.

Solution Explorer Window
The Solution Explorer provides access to all of the solution’s files
The solution’s startup project is the one that runs when you select Debug > Start Debugging
By default, the IDE displays only files that you may need to edit
Other files that the IDE generates are hidden
The Solution Explorer window includes a toolbar that contains several icons
Clicking the Show All Files icon displays all the solution’s files, including those generated by the IDE
Clicking the arrows to the left of a file or folder expands or collapses the project tree’s nodes
Toolbox Window
The Toolbox contains the controls used to customize Forms
With visual app development, you can “drag and drop” controls onto the Form and the IDE will write the code that creates the controls for you.Just as you do not need to know how to build an engine to drive a car, you do not need to know how to build controls to use them.Reusing preexisting controls saves time and money when you develop apps

Properties Window
Select View > Properties Window
The Properties window allows you to modify a control’s properties visually, without writing code.The Properties window displays the properties for the currently selected Form, control or file in Design view.At the top of the Properties window is the component selection drop-down list.The Properties window is crucial to visual app development.It allows you to modify a control’s properties visually, without writing code

Using Help in Visual Basic 2012
Context-Sensitive Help
Visual Studio provides context-sensitive help pertaining to the “current content”
i.e., The items around the location of the mouse cursor
To use context-sensitive help, click an item, then press the F1 key
The help documentation is displayed in a web browser window
To return to the IDE, either close the browser window or select the IDE’s icon in your Windows task bar


Visual 6708520590096084752

Post a Comment

SPAMMING will not be Appreciated.


Hot in week



Our Channel

Contact Us


Email *

Message *

Follow by Email