130 likes | 274 Views
Tutorial 1 An Introduction to Visual Basic .NET. Creating a Windows-Based Application in Visual Basic .NET Lesson A. 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
E N D
Creating a Windows-Based Application in Visual Basic .NET Lesson A
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
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
Visual Studio .NET Recent Projects Solution Explorer Dynamic Help Toolbox
Starting a New Project Installed .NET Products Type of Project Name of Project Name and Location Of Project
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 Purpose of the Links Included on the Start Page
Toolbox (auto-hidden) Visual Basic .NET Project information Windows Form object Properties window
More on the Toolbox Appendix A p. 721 has a complete list The first tools we will use include: • Button • Label • Textbox
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
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