1. Trang chủ
  2. » Công Nghệ Thông Tin

An introduction to visual basic NET ppt

37 263 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 37
Dung lượng 582 KB

Nội dung

Tutorial 1: An Introduction to Visual Basic .NET 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 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  Add a Visual Basic .NET project to a solution  Set the properties of an object  Save a solution, project, and form  Close a solution  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 5 The Visual Studio .NET Start Page Links Tutorial 1: An Introduction to Visual Basic .NET 6 Visual Studio .NET Recent Projects Solution Explorer Dynamic Help Toolbox Tutorial 1: An Introduction to Visual Basic .NET 7 Starting a New Project Installed .NET Products Type of Project Name and Location Of Project Name of Project 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 Project information Properties window Toolbox (auto- hidden) Windows Form object Tutorial 1: An Introduction to Visual Basic .NET 10 Working with Controls Lesson B Objectives After completing this lesson, you will be able to:  Add a control to a form  Set the properties of a label, picture box, and button control  Select multiple controls  Center controls on the form  Set the properties of a project  Start and end an application  Enter code in the Code Editor window  Terminate an application using the Me.Close method [...]... toolbox Tutorial 1: An Introduction to Visual Basic NET 23 Starting and Ending an Application You can start an application by  Clicking Debug on the menu bar, and then clicking Start  Or you can simply press the F5 key on your keyboard  When you start an application, Visual Studio NET automatically creates a file that can be run outside of the Visual Studio NET IDE  The file, referred to as an executable... the Me.Close method, Visual Basic NET terminates the current application Tutorial 1: An Introduction to Visual Basic NET 28 The Code Window Class definition Code Editor window tab Event procedure Tutorial 1: An Introduction to Visual Basic NET 29 The ExitButton’s Click Event Procedure Private Sub ExitButton_Click(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles ExitButton.Click Private Sub... responding  You use the Class Name and Method Name list boxes to select the object and event, respectively, that you want to code  To help you follow the rules of the Visual Basic NET programming language, called syntax, the Code Editor provides you with a code template for every event procedure Tutorial 1: An Introduction to Visual Basic NET 26 Writing Visual Basic NET Code  The first line in the... Controls Toolbox Item Description Data Components to access data and data sources Components Components to perform special tasks Clipboard Ring Stores items that you have copied General Can be used to store code snippets Windows Forms Objects used to create user interface Tutorial 1: An Introduction to Visual Basic NET 11 The Toolbox Window  The Toolbox window, or toolbox, contains the tools and other... PictureBox tool Tutorial 1: An Introduction to Visual Basic NET 22 Using the Button Tool  Every Windows application should give the user a way to exit the program  Most Windows applications provide either an Exit option on a File menu or an Exit button for this purpose  In Windows applications, a button control performs an immediate action when clicked  You create a button using the Button tool in the toolbox... executable file, has the same name as the project, but with an exe filename extension Tutorial 1: An Introduction to Visual Basic NET 24 Writing Visual Basic NET Code  Actions—such as clicking, double-clicking, and scrolling— are called events  The set of Visual Basic NET instructions, or code, that tells an object how to respond to an event is called an event procedure  A class definition is simply a block... used tools listed first Tutorial 1: An Introduction to Visual Basic NET 13 Using the Label Tool  The tools in the toolbox allow you to create objects, called controls, that can be displayed on a form  You use the Label tool to create a label control  The purpose of a label control is to display text that the user is not allowed to edit while the application is running  Assigning meaningful names to. .. Introduction to Visual Basic NET 15 Key Form Properties Property Description Name Used to refer to the object Text Caption displayed in the title bar StartPosition Position of window on screen BackgroundImage Image displayed on the form Size Width and Height of window Location Left and Top position of window Tutorial 1: An Introduction to Visual Basic NET 16 Changing the Property for More Than One Control...  You can use the Font property to change the appearance of many of the objects in your user interface  The Font property allows you to change the type of font used to display the text in the object, as well as the style and size of the font Tutorial 1: An Introduction to Visual Basic NET 17 Fonts  A font is the general shape of the characters in the text  Courier, Tahoma, and Microsoft Sans Serif... defines) the attributes and behaviors of an object  When you start the application, Visual Basic NET uses the class definition to create the object Tutorial 1: An Introduction to Visual Basic NET 25 Writing Visual Basic NET Code  The Class Name list box lists the names of the objects included in the user interface  The Method Name list box, on the other hand, lists the events to which the selected . Tutorial 1: An Introduction to Visual Basic .NET 1 An Introduction to Visual Basic .NET Tutorial 1: An Introduction to Visual Basic .NET 2 Creating a Windows-Based Application in Visual Basic. Page Links Tutorial 1: An Introduction to Visual Basic .NET 6 Visual Studio .NET Recent Projects Solution Explorer Dynamic Help Toolbox Tutorial 1: An Introduction to Visual Basic .NET 7 Starting. 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

Ngày đăng: 24/10/2014, 10:04

TỪ KHÓA LIÊN QUAN