Visual Studio.Net Tutorials

Similar documents
Working with SQL Server Integration Services

Introduction to the use of the environment of Microsoft Visual Studio 2008

Tutorial Build a simple IBM Rational Publishing Engine (RPE) template for IBM Rational DOORS


Drupal Training Part One

Knowledgebase Article

Windows XP Pro: Basics 1

Crystal Reports. For Visual Studio.NET. Reporting Off ADO.NET Datasets

SQL Server 2005: Report Builder

To Begin Customize Office

Appendix 1 Install RightNow on your PC

How to Edit an . Here are some of the things you can do to customize your

Hypercosm. Studio.

Automate tasks with Visual Basic macros

Start A New Project with Keil Microcontroller Development Kit Version 5 and Freescale FRDM-KL25Z

Content Author's Reference and Cookbook

This section provides a 'Quickstart' guide to using TestDriven.NET any version of Microsoft Visual Studio.NET

1. Right click using your mouse on the desktop and select New Shortcut.

Intro to Web Development

Word basics. Before you begin. What you'll learn. Requirements. Estimated time to complete:

Bitrix Site Manager 4.1. User Guide

Tutorial Overview Quick Tips on Using the ONRR Statistical Information Website

Appendix A How to create a data-sharing lab

Constant Contact User Manual

Planning and Managing Projects with Microsoft Project Professional 2013

Task Card #2 SMART Board: Notebook

Bookstore Application: Client Tier

Creating a New Search

How to test and debug an ASP.NET application

How to start creating a VoIP solution with Ozeki VoIP SIP SDK

Intellect Platform - The Workflow Engine Basic HelpDesk Troubleticket System - A102

Argus Direct add-in for spreadsheets - Installation Guide

Web Application Development

Building A Web Database Using Contextual Mode

Microsoft PowerPoint 2010 Handout

Microsoft Project 2013

Windows: File Management. Lesson Notes Author: Pamela Schmidt

Welcome! Want to find out more? Follow this tutorial, then launch Part 1 to get started.

Advanced Outlook. Choosing the calendar Icon will take you to a screen showing today s appointments:

Generating Visual Studio Project Files

Windows XP Chinese Character Support Installation Instruction

Overview... 2 How to Add New Documents... 3 Adding a Note / SMS or Phone Message... 3 Adding a New Letter How to Create Letter Templates...

Installing LearningBay Enterprise Part 2

Using the SAS Enterprise Guide (Version 4.2)

Step 2: Headings and Subheadings

Excel basics. Before you begin. What you'll learn. Requirements. Estimated time to complete:

Acrobat X Pro Accessible Forms and Interactive Documents

9 CREATING REPORTS WITH REPORT WIZARD AND REPORT DESIGNER

Desktop, Web and Mobile Testing Tutorials

Welcome to CorelDRAW, a comprehensive vector-based drawing and graphic-design program for the graphics professional.

Database Forms and Reports Tutorial

DEPLOYING A VISUAL BASIC.NET APPLICATION

PowerPoint 2013: Basic Skills

Tutorial 13: Object Animation

Microsoft Office PowerPoint Identify components of the PowerPoint window. Tutorial 1 Creating a Presentation

Introduction to Visual Studio 2010

Introduction to Microsoft Word 2003

State of Illinois Web Content Management (WCM) Guide For SharePoint 2010 Content Editors. 11/6/2014 State of Illinois Bill Seagle

Grandstream Networks, Inc.

Internet Explorer 7 for Windows XP: Obtaining MIT Certificates

The KPager Handbook. Dirk Doerflinger Antonio Larrosa Jiménez Pino Toscano Matthias Elter Matthias Ettrich

This tutorial assumes that you are familiar with ASP.Net and ActiveX controls.

2010 Document Template Administration. User Guide. Document Template Administration

From Data Modeling to Data Dictionary Written Date : January 20, 2014

Create a Poster Using Publisher

Studio Visual Steps. A Short Guide to Windows Internet Explorer 9

Creating Your First ActiveX Control For the latest information, see

Advantage Cloud Access: Microsoft Remote Desktop for Android

Nintex Workflow for Project Server 2010 Help

Virto SharePoint Gantt Chart App for Office 365 Release User and Installation Guide

Windows 8.1 Tips and Tricks

1. Tutorial - Developing websites with Kentico Using the Kentico interface Managing content - The basics

Creating a Project with PSoC Designer

What is Microsoft PowerPoint?

Using Microsoft Access

Intellect Platform - Tables and Templates Basic Document Management System - A101

Working with Macros and VBA in Excel 2007

How to Add Social Media Icons to Your Website

emarketing Manual- Creating a New

QQConnect Overview Guide

Kentico CMS 7.0 User s Guide. User s Guide. Kentico CMS

BIGPOND ONLINE STORAGE USER GUIDE Issue August 2005

Quick Start Guide for Outlook Mac 2011

Microsoft Access 2010 handout

Inking in MS Office 2013

Introduction to Word 2007

Internet Explorer 7. Getting Started The Internet Explorer Window. Tabs NEW! Working with the Tab Row. Microsoft QUICK Source

Setting Up Your Online ecommerce Shopping Cart

IRIS OPENDOCS. Getting Started Guide. IRIS OpenDocs IRIS OpenDocs

Surf it Easy. User Guide

Visual Studio.NET Database Projects

Windows 7: Desktop. Personalization

SelectSurvey.NET Developers Manual

Introduction to OpenOffice Writer 2.0 Jessica Kubik Information Technology Lab School of Information University of Texas at Austin Fall 2005

Microsoft PowerPoint Tutorial

Creating a Simple Visual C++ Program

Adding A Student Course Survey Link For Fully Online Courses Into A Canvas Course

Virtual Office Remote Installation Guide

HOW TO UPLOAD HTML CODE INTO CONSTANT CONTACT

Adobe Acrobat 6.0 Professional

Transcription:

Visual Studio.Net Tutorials What is Visual Studio.NET? Many people always get confused with Visual Studio.NET (VS.NET) and.net technology. VS.NET is just an editor, provided by Microsoft to help developers write.net programs easily. VS.NET editor automatically generates lot of code, allows developers to drag and drop controls to a form, provide short cuts to compile and build the application etc. Understand Visual Studio.NET Visual Studio is a very user friendly tool. But there are enough stuff to confuse any one new to Visual Studio family. The purpose of this chapter is to make you familiar with different options in Visual Studio.NET (VS.NET). We will not cover the entire visual studio guide. We are just explaining the most commonly used features of VS.NET. When you work on any project, VS.NET has several child windows to assist you in the application development. These windows are attached on the left, bottom and right sides of the main window. You can click on these small windows to expand it and see the content of them. Some of the most commonly used child windows are explained below. Most of these windows will be enabled only when you have created a project and working on a WebForm/WinForm. Toolbox Toolbox provides all the drag and drop controls for your application. Depending on the kind of application you are working on, the toolbox will show appropriate controls and you can drag and drop them to your form. If you are developing a web application, toolbox will show ASP.NET controls and if you are developing a Windows application, it will show Windows controls (like Radio button, text box, buttons etc). You can simply drag and drop any controls from the toolbox to your form. After you drag and drop any control, double click on the control to go the default event associated with the control. Picture 1 : Toolbox

The Toolbox will be enabled only when you have a WebForm or WinForm opened in Design mode and is usually located on TOP LEFT corner of the VS.NET. By default, all windows including Toolbox will be displayed as Minimized (Marked as A in picture). You will see only the small icon and the text 'Toolbox' written vertically on the left bar of VS.NET. You can click on this minimized window to expand it (Expanded window is marked as C.). When you move the mouse away from the window, it will again automatically minimize. You can keep the toolbox always expanded by pressing the pushpin (Marked with B.) The above behaviour is common for all the windows explained below. They will be minimized by default and you can point the mouse over it to expand it. Use the pushbutton to keep it expanded. Design mode & HTML mode If you are developing a web application, you can switch between design mode and HTML mode for any web form. When you are in HTML mode, it will show you the HTML tags and ASP.NET code and you can manually edit it. YOu can switch to the Design mode by clicking the Design button on BOTTOM LEFT corner of VS.NET. In design mode, you can see how your ASP.NET page is going to look like when some one view your web page. Also, you can Picture 2 : Design/HTML mode drag and drop controls from the toolbox, which will automatically generate the HTML for it. Typically, developers switch between these two modes very frequently. You can go to design mode to drag/drop controls, right click on the controls to set correct properties etc. Then, click on the HTML mode to view the generated HTML. You can manually cmake changes to the automatically generated HTML. If you change any properties in HTML mode, the changes will be reflected when you switch to Design Mode.

Solution Explorer Solution Explorer, located on TOP RIGHT corner of VS.NET, displays your solution, all projects included in each solution and the list of files in each project. They are listed in the form of a tree control. Typically, for a single application, you will have 1 solution and one or more projects. When you create a new application, you are have to create single Visual Studio project. In more complex applications, there may be more than one projects. All these projects are grouped into a single solution. Picture 3 : Solution Explorer Even if you do not create a solution separately, a solution will be automatically created for you. To add a new file to your project, you can right click on the project name (JustTest is the project name in the picture) and choose the menu option Add. It will give you the option to choose a file type. You can choose an appropriate type. For WinForms and WebForms, you can see the file in design mode and the code associated with it. Double click on any form and it will be opened in design mode. Right click on any form and select the menu option 'View Code' to view the code associate with the form. Output Output window, located on BOTTOM LEFT corner of VS.NET, displays the result of your project compilation. When you compile your project, all errors, warnings and compilation results will be displayed in this window. In addition to the Output window, they are few other windows located in the BOTTOM LEFT corner of VS.NET.

Task List - shows individual tasks. Typically, when you compile your project, all errors and warnings will be added to your task list. You can double click on any item in the task list to go directly to the code associated with the task. Command Window - you can execute code statements here. When you are debugging, you can evaluate the value of any variables by typing? followed by the variable name. Picture 4 : Output Find Results - when you search for any text in file(s) using VS.NET, the results will be displayed in this window. Projects VS.NET allows you to create several types of projects. Most of the time you will be using one of two categories: Windows Application - to create any standard windows application. ASP.NET Web Application - to create a web site. Creating a Project To create a new project, choose the main menu : File > New > Project. It will give you several options. First you must select a type from the left side of the popup - you may choose Visual Basic Projects or Visual C# projects based on the language you plan to use for development. Picture 5 : Create new project

After selecting a type, you choose a template from the right side. You may choose Windows Application, ASP.NET Web Application or any other template based on the nature of the application you want When you create a Windows Project or ASP.NET Web Project, VS.NET will add a sample file by default. You can simply Build your new project and see how it works. Building a project To try this, create a new Windows Project as explained above. It will create a sample form. Go to the main menu and select the menu item Build > Build Solution. This process will compile all the files included in your project and show you the result in the Output window. If the result shows '0 failed', your build is success and your application is ready to deliver!! To Run the application you just Built, go to the main menu and select Debug > Start Without Debugging. This will launch the application you just developed. You can drag and drop several controls to the form and try running it. When you compile (build) the code, if there is any errors or warnings, the details will be shown in the 'Task List' window. You can click on the specific item in this window to go directly to the line of code associated with the error.