tutorial 1: an introduction to visual basic.net1 tutorial 1 an introduction to visual basic.net
TRANSCRIPT
Tutorial 1: An Introduction to Visual Basic .NET 2
Creating a Windows-Based Application in Visual Basic .NET
Lesson A
Tutorial 1: An Introduction to Visual Basic .NET 3
Lesson A Objectives
After completing this lesson, you will be able to: Start and customize Visual Studio .NET Create a Visual Studio .NET solution and project
Solution: container to store multiple projects and files even different types of code
Project: stores files for one project Set the properties of an object Save & close solution, project, and form (.vb files) Open an existing solution
Tutorial 1: An Introduction to Visual Basic .NET 4
Starting and Customizing Visual Studio .NET
Visual Studio .NET is Microsoft’s newest integrated development environment (IDE) Includes programming languages such as Visual
Basic .NET, C++ .NET, and C# .NET A Windows-based application has a Windows
user interface and runs on a desktop computer A user interface is what you see and interact with
when using an application A Web-based application, on the other hand, has
a Web user interface and runs on a server
Tutorial 1: An Introduction to Visual Basic .NET 6
Visual Studio .NET Recent Projects Solution
Explorer
DynamicHelpToolbox
Tutorial 1: An Introduction to Visual Basic .NET 7
Starting a New ProjectInstalled .NET
Products Type ofProject
Name and LocationOf Project
Name ofProject
Tutorial 1: An Introduction to Visual Basic .NET 8
Purpose of the Links Included on the Start Page
Link Purpose
Get Started Create new projects and open existing projects
What’s New Access information about the new features in Visual Studio .NET and check for Visual Studio .NET updates
Online Community Contact fellow developers online
Headlines View links to the latest news from the MSDN Online Library, including information on seminars, trade shows, and conferences, as well as training opportunities offered by Microsoft
Search Online Search the MSDN Online Library
Downloads Access the latest product updates and sample code available for download
XML Web Services Search for XML Web Services to include in your applications, and publish your own XML Web services
Web Hosting Post Web applications, for a fee, on servers provided by third-party Internet Service Providers
My Profile Customize various program settings in the IDE
Tutorial 1: An Introduction to Visual Basic .NET 9
Visual Basic .NET
Projectinformation
Propertieswindow
Toolbox(auto-
hidden)
WindowsForm object
Tutorial 1: An Introduction to Visual Basic .NET 10
More on the Toolbox
Appendix A p. 721 has a complete list
The first tools we will use include: Button Label Textbox
Tutorial 1: An Introduction to Visual Basic .NET 11
More on the Properties Window
The first properties we will change include: Name – use 3-letter prefix naming convention
See http://www.developerfusion.com/show/52/3/ Text Backcolor Background image Size – measured in pixels Start position/location
Tutorial 1: An Introduction to Visual Basic .NET 12
The Code Window
Double click on an object to open to code window.
For example, at the top of the code window:Public Class Form1
Inherits System.Windows.Forms.Form
Form1 is the object name
All visual studio .net objects are derived from system
Windows is derived from class system
Forms is derived from class windows
Form is derived from class forms