Chapter 3 - Introduction To Visual Studio
Chapter 3 - Introduction To Visual Studio
NET
Main Menu 1 of 63
Introduction to Visual Basic .NET
Objective
This chapter will give an introduction to Visual
Studio .NET and Visual Basic .NET along with its
features, development environment and its building
blocks. At the end of this chapter students should be
able to write their first simple application in Visual
Basic .NET.
Main Menu 2 of 63
Introduction to Visual Basic .NET
Scope
Introduction
System Requirements
Visual Studio .NET Features
Visual Basic .NET – Introduction
Features of Visual Basic .NET
Development Environment of Visual Basic .NET
Main Menu 3 of 63
Introduction to Visual Basic .NET
Introduction
.NET Framework covers all the layers of software
development above the operating system. When
using the .NET Framework for the application
development, there is a choice of wide variety of
languages to use.
Microsoft NET Framework SDK is required for
these languages to function which includes the
compilers for all these languages.
Main Menu 4 of 63
Introduction to Visual Basic .NET
Introduction
The overall vision of Microsoft .NET is to create a
common platform for building applications that can
be delivered as reusable, interoperable services over
the Internet and corporate Intranets. Getting there
will require a new programming environment in
which developers are free to mix and match
components from multiple programming languages
to create the computer applications of tomorrow.
Main Menu 5 of 63
Introduction to Visual Basic .NET
System Requirements
Visual Studio comes in four edition namely Visual
Studio .NET Professional Edition, Enterprise
Developer Edition, and Enterprise Architect Edition.
Computer/Processor
PC with Pentium II-class processor, 450 MHz
Operating System
MS Windows 2000 Server or Professional
Windows Me and 98
Main Menu 6 of 63
Introduction to Visual Basic .NET
System Requirements
While Visual Studio.NET will install on all the
above platforms, Windows 2000 is required to use
all the features of the .NET framework. Some
features such as GDI+ are only supported in
Windows 2000. In Windows Me and 98 some
features of Visual Studio is not supported.
Memory
Windows 2000 Professional: 96 MB of RAM
Windows 2000 Server: 192 MB of RAM (256 MB
recommended)
Main Menu 7 of 63
Introduction to Visual Basic .NET
System Requirements
Hard Disk
500 MB on System Drive and 2.5 GB on installation
drive
Drive
CD-ROM drive
Display
VGA or higher resolution monitor
Main Menu 8 of 63
Introduction to Visual Basic .NET
Main Menu 9 of 63
Introduction to Visual Basic .NET
Main Menu 10 of 63
Introduction to Visual Basic .NET
Main Menu 11 of 63
Introduction to Visual Basic .NET
Main Menu 12 of 63
Introduction to Visual Basic .NET
Main Menu 13 of 63
Introduction to Visual Basic .NET
Main Menu 14 of 63
Introduction to Visual Basic .NET
Main Menu 15 of 63
Introduction to Visual Basic .NET
Main Menu 16 of 63
Introduction to Visual Basic .NET
Main Menu 17 of 63
Introduction to Visual Basic .NET
Main Menu 18 of 63
Introduction to Visual Basic .NET
Main Menu 19 of 63
Introduction to Visual Basic .NET
Main Menu 20 of 63
Introduction to Visual Basic .NET
Solution Explorer
Solution Explorer window can be selected from
View | Solution Explorer
Solution Explorer displays an organized list of
projects as well as the files and directories that are
part of the current solution. The solution can consist
of projects in different languages.
Main Menu 24 of 63
Introduction to Visual Basic .NET
Enhanced Toolbox
This option can be selected from View |
Toolbox
A variety of items that can be used in Visual Studio
projects are displayed in the toolbox. The items
available change depending on which designer or
editor the developer is using. The items can include
Web and Windows based form controls, ActiveX
Controls, Web Services, HTML elements, objects
and items from Clipboard.
Code snippets from the code window can also be
dragged onto the toolbox for later use.
Main Menu 25 of 63
Introduction to Visual Basic .NET
Server Explorer
This Server Explorer window can be opened from
View | Server Explorer
One of the biggest challenges in writing a middle-
tier component is discovering what application
services are available on the corporate network and
after that integrating them into the application.
Server Explorer of Visual Studio.NET shows an
entire computer including databases, message
queues, performance counter services, processes,
event logs and all other installed server elements.
Main Menu 26 of 63
Introduction to Visual Basic .NET
Dynamic Help
This option can be selected from Help |
Dynamic Help
Dynamic Help provides appropriate help on a single
click. It provides pointers to relevant information
specific to the current development task.
Main Menu 27 of 63
Introduction to Visual Basic .NET
Enhanced Intelligence
Web Developers can get immediate help on tags,
properties and even values within the code editor
using the IntelliSense technology. Developer can
gain benefits of automatic statement completion and
syntax notifications when they write their code.
Enhanced Integrated Debugger
End-to-end debugging of web applications across
Main Menu 28 of 63
Introduction to Visual Basic .NET
Command Window
This window can be selected from View | Other
Windows | Command Window
Using the Command Window developers can
directly interact with the IDE, bypassing the menu
system, and avoiding dialog boxes by executing
command parameters, switches and arguments.
Main Menu 29 of 63
Introduction to Visual Basic .NET
Window Management
More code can be viewed on screen at one time
when using Visual Studio.NET.
Auto Hide option allows to hide tool windows along
the edges of the IDE so that valuable space is not
occupied. To view the hidden window, simply place
the mouse over the appropriate tab.
Various information windows in Visual Studio.NET
are dockable.
When developers edit multiple documents in the
editor or designer, all the documents appear as tabs
on the top. Main Menu 30 of 63
Introduction to Visual Basic .NET
Window Management
Back and Forward button allows developers to
navigate through the open windows in the
environment.
Visual Studio.NET provides support for multiple
screens so that more windows can be opened at the
same time without sacrificing screen space.
Links can be added to Web browser Favorites from
within the Visual Studio. This can be done by
selecting View | Other Windows |
Favorites.
Main Menu 31 of 63
Introduction to Visual Basic .NET
Main Menu 32 of 63
Introduction to Visual Basic .NET
Other Window
Database Designer
It allows working with physical database schemas
easily.
Database Project
All the elements relating to data can be grouped and
Web Hosting
Developers wanting to deploy web applications and
XML web services by using Visual Studio.NET will
be at ease by the inclusion of new Web Hosting tab
on the Start page in Visual Studio.NET. The Web
Hosting tab gives developers access to a list of
ASP.NET Web hosters to provide free Web space
and are integrated with Visual Studio.NET to
facilitate the deployment of completed applications
through a wizard.
Main Menu 34 of 63
Introduction to Visual Basic .NET
Third-party downloads
Hundreds of software component vendors, training
companies and other partners have already adopted
and created .NET based software that is available for
developers to extend their solutions with Visual
Studio.NET. These third party resources can easily
be found on the “What‟s New” tab on the Start page
in Visual Studio.NET.
It provides a place for developers to learn about the
new features in Visual Studio.NET as well as a place
to learn about the third party vendors
Main Menu 35 of 63
Introduction to Visual Basic .NET
Main Menu 36 of 63
Introduction to Visual Basic .NET
Main Menu 38 of 63
Introduction to Visual Basic .NET
Main Menu 39 of 63
Introduction to Visual Basic .NET
Main Menu 42 of 63
Introduction to Visual Basic .NET
Main Menu 44 of 63
Introduction to Visual Basic .NET
Exception Handling
Exception is an error occurred due to any abnormal
behavior of the code. Developers need to trap these
errors and send the control of the code to another
part of the program accordingly.
With VB.NET, exception handling has become more
structured. Developers can nest their exception
handling, and there is a control structure for writing
cleanup code that executes in both normal and
exception conditions.
Main Menu 46 of 63
Introduction to Visual Basic .NET
Main Menu 47 of 63
Introduction to Visual Basic .NET
Shared members
Shared members are data and function members of
classes that are shared by all instances of the class.
Sharing a single instance of a data member or
function among all instances of a class is required in
a Visual Basic application with inheritance.
Main Menu 48 of 63
Introduction to Visual Basic .NET
Main Menu 49 of 63
Introduction to Visual Basic .NET
information about
enhancement in Microsoft
technologies.
Main Menu 51 of 63
Introduction to Visual Basic .NET
access Microsoft
Newsgroup.
Headlines
This links gives the latest
Main Menu 52 of 63
Introduction to Visual Basic .NET
Main Menu 53 of 63
Introduction to Visual Basic .NET
Main Menu 54 of 63
Introduction to Visual Basic .NET
Solution Explorer
Solution Explorer window provide an organized view of the
project and their files. To access Solution Explorer select
Solution Explorer on the View menu
A solution logically contains the projects in different
languages and files needed to build a Visual Studio
application. Solution Explorer helps us to view the different
projects contained in a solution.
A solution can contain multiple projects that can be open,
close, and save together. Each project in a solution might
contain multiple files or items. The types of items contained
within a project vary according to the development language
used to create them.
Main Menu 55 of 63
Introduction to Visual Basic .NET
Server Explorer
Server Explorer is the
server management console
for Visual Studio .NET. It
is used to open database
connection and log on to
the servers and explores the
databases and system
services. To access server
explorer select Server
Explorer on the view menu.
Main Menu 56 of 63
Introduction to Visual Basic .NET
Server Explorer
Using Server Explorer one can do the following
things:
Connect to servers and view their resources
Make data connections to SQL Server or other types
of databases.
Configure and integrate Exchange 2000 Servers into
your application.
Find out information about processes, services, and
DLLs loaded on a server.
Main Menu 57 of 63
Introduction to Visual Basic .NET
Properties Window
Property window is used to
view and change the design
time properties and events
of selected objects that are
located in editors and
designers. This window can
also be use to edit and view
the file, project and solution
properties. Properties
Window can be access by
selecting Properties
Window on the View
menu.
Main Menu 58 of 63
Introduction to Visual Basic .NET
Toolbox
The toolbox displays a
variety of item for use in
Visual Studio .NET
projects. The tabs and items
available from the toolbox
change, depending upon the
designer or editor currently
in use. Toolbox can be
accessed by selecting
Toolbox on View menu.
Main Menu 59 of 63
Introduction to Visual Basic .NET
Summary
Key points covered in this chapter are:
Visual Studio.NET (VS.NET) is a powerful
Summary
While Visual Studio.NET will install on all 2000,
NT, Me, 98, Windows 2000 is required to use all the
features of the .NET framework. Some features such
as GDI+ are only supported in Windows 2000.
For working with databases, VS.NET includes
comprehensive features. From within the VS.NET,
databases and schemas, indexes, triggers and other
items can be created.
Main Menu 61 of 63
Introduction to Visual Basic .NET
Self Assessment
Fill in the blanks:
Server Explorer of Visual Studio.NET shows an entire
_________________
computer including databases, message queues,
performance counter services, processes, event logs and all
other installed server elements
Wrapping up of data and methods into a single unit is called
Encapsulation
______________
Server Explorer can also be used to perform
The ________________
administrative tasks on Microsoft Windows services like
starting, stopping and pausing services.
Visual Studio.NET supports a SharedIDE
_____________environment
for all languages within it.
Main Menu 62 of 63
Introduction to Visual Basic .NET
Self Assessment
State True or False:
Event logs supply the user interface for viewing the
logs and a programming interface for examining
the logs True
The data cannot be insulated from direct access by
the program False
A solution can contain multiple projects that can be
open, close, and save together True
Main Menu 63 of 63