Top Banner
Tutorial 1: An Introduction to Visua l Basic .NET 1 Tutorial 1 An Introduction to Visual Basic .NET
12

Tutorial 1: An Introduction to Visual Basic.NET1 Tutorial 1 An Introduction to Visual Basic.NET.

Dec 31, 2015

Download

Documents

Georgina Bond
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Tutorial 1: An Introduction to Visual Basic.NET1 Tutorial 1 An Introduction to Visual Basic.NET.

Tutorial 1: An Introduction to Visual Basic .NET 1

Tutorial 1An Introduction to Visual Basic .NET

Page 2: Tutorial 1: An Introduction to Visual Basic.NET1 Tutorial 1 An Introduction to Visual Basic.NET.

Tutorial 1: An Introduction to Visual Basic .NET 2

Creating a Windows-Based Application in Visual Basic .NET

Lesson A

Page 3: Tutorial 1: An Introduction to Visual Basic.NET1 Tutorial 1 An Introduction to Visual Basic.NET.

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

Page 4: Tutorial 1: An Introduction to Visual Basic.NET1 Tutorial 1 An Introduction to Visual Basic.NET.

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

Page 5: Tutorial 1: An Introduction to Visual Basic.NET1 Tutorial 1 An Introduction to Visual Basic.NET.

Tutorial 1: An Introduction to Visual Basic .NET 5

The Visual Studio .NET Start Page

Links

Page 6: Tutorial 1: An Introduction to Visual Basic.NET1 Tutorial 1 An Introduction to Visual Basic.NET.

Tutorial 1: An Introduction to Visual Basic .NET 6

Visual Studio .NET Recent Projects Solution

Explorer

DynamicHelpToolbox

Page 7: Tutorial 1: An Introduction to Visual Basic.NET1 Tutorial 1 An Introduction to Visual Basic.NET.

Tutorial 1: An Introduction to Visual Basic .NET 7

Starting a New ProjectInstalled .NET

Products Type ofProject

Name and LocationOf Project

Name ofProject

Page 8: Tutorial 1: An Introduction to Visual Basic.NET1 Tutorial 1 An Introduction to Visual Basic.NET.

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

 

Page 9: Tutorial 1: An Introduction to Visual Basic.NET1 Tutorial 1 An Introduction to Visual Basic.NET.

Tutorial 1: An Introduction to Visual Basic .NET 9

Visual Basic .NET

Projectinformation

Propertieswindow

Toolbox(auto-

hidden)

WindowsForm object

Page 10: Tutorial 1: An Introduction to Visual Basic.NET1 Tutorial 1 An Introduction to Visual Basic.NET.

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

Page 11: Tutorial 1: An Introduction to Visual Basic.NET1 Tutorial 1 An Introduction to Visual Basic.NET.

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

Page 12: Tutorial 1: An Introduction to Visual Basic.NET1 Tutorial 1 An Introduction to Visual Basic.NET.

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