Introduction To . NET & Visual Studio
.NET Club,IIT Kanpur
30 Oct,2007
Introduction To . NET & Visual Studio
What is .NET and Visual Studio?
I
.NET?
Introduction To . NET & Visual Studio
What is .NET and Visual Studio?
I
.NET?
I
Another Programming Language?
Introduction To . NET & Visual Studio
What is .NET and Visual Studio?
I
.NET?
I
Another Programming Language?
I
NO.Then what is it?
Introduction To . NET & Visual Studio
What is .NET and Visual Studio?
I
.NET?
I
Another Programming Language?
I
NO.Then what is it? A framework that supports
I
I
Programming Languages I
I
e.g. C#, Visual Basic, J#, C++
Data Markup Languages I
e.g. HTML, XML, CSS
Introduction To . NET & Visual Studio
What is .NET and Visual Studio?
I
.NET?
I
Another Programming Language?
I
NO.Then what is it? A framework that supports
I
I
Programming Languages I
I
I
I
e.g. C#, Visual Basic, J#, C++
Data Markup Languages e.g. HTML, XML, CSS
Focus : only Business logic
Introduction To . NET & Visual Studio
What is .NET and Visual Studio?
I
MS Visual Studio .Net?
Introduction To . NET & Visual Studio
What is .NET and Visual Studio?
I
MS Visual Studio .Net?
I
A powerful IDE
Introduction To . NET & Visual Studio
What is .NET and Visual Studio?
I
MS Visual Studio .Net?
I
A powerful IDE
I
Rich visual interface
Introduction To . NET & Visual Studio
What is .NET and Visual Studio?
I
MS Visual Studio .Net?
I
A powerful IDE
I
Rich visual interface
I
Supports drag and drop
Introduction To . NET & Visual Studio
What is .NET and Visual Studio?
I
MS Visual Studio .Net?
I
A powerful IDE
I
Rich visual interface
I
Supports drag and drop Beauty of .Net
I
Introduction To . NET & Visual Studio
What is .NET and Visual Studio?
I
MS Visual Studio .Net?
I
A powerful IDE
I
Rich visual interface
I
Supports drag and drop Beauty of .Net
I
I
less lines of code required
Introduction To . NET & Visual Studio
What is .NET and Visual Studio?
I
MS Visual Studio .Net?
I
A powerful IDE
I
Rich visual interface
I
Supports drag and drop Beauty of .Net
I
I I
less lines of code required requires less time to develop
Introduction To . NET & Visual Studio
What is .NET and Visual Studio?
I
MS Visual Studio .Net?
I
A powerful IDE
I
Rich visual interface
I
Supports drag and drop Beauty of .Net
I
I I I
less lines of code required requires less time to develop lower deployment costs
Introduction To . NET & Visual Studio
What is .NET and Visual Studio?
I
MS Visual Studio .Net?
I
A powerful IDE
I
Rich visual interface
I
Supports drag and drop Beauty of .Net
I
I I I I
less lines of code required requires less time to develop lower deployment costs other important issues
Introduction To . NET & Visual Studio
Visual Studio:Interesting Features
Introduction To . NET & Visual Studio
Smart Tags I
Provides access to information and common tasks
I
No need to constantly navigate from work area
Introduction To . NET & Visual Studio
Smart Tags I
Provides access to information and common tasks
I
No need to constantly navigate from work area
Introduction To . NET & Visual Studio
Code Snippets I I I I
Insertion of generic template code You just fill in the blanks Access code snippets by Right click in code editor–context menu–insert snippets
Introduction To . NET & Visual Studio
Code Snippets I I I I
Insertion of generic template code You just fill in the blanks Access code snippets by Right click in code editor–context menu–insert snippets
Introduction To . NET & Visual Studio
Code Snippets I I I I
Insertion of generic template code You just fill in the blanks Access code snippets by Right click in code editor–context menu–insert snippets
Introduction To . NET & Visual Studio
Code Snippets
Introduction To . NET & Visual Studio
Code Snippets
Introduction To . NET & Visual Studio
Surround With I
Enables automatic addition of a portion of the respective code syntax easily
Introduction To . NET & Visual Studio
Surround With I I I
Enables automatic addition of a portion of the respective code syntax easily Benefit :relevant code added instantly Also,errors avoided
Introduction To . NET & Visual Studio
Surround With I I I I
Enables automatic addition of a portion of the respective code syntax easily Benefit :relevant code added instantly Also,errors avoided Your job :only to dress up the blank spaces
Introduction To . NET & Visual Studio
Surround With I I I I I
Enables automatic addition of a portion of the respective code syntax easily Benefit :relevant code added instantly Also,errors avoided Your job :only to dress up the blank spaces Eg. to add a do while loop–steps
Introduction To . NET & Visual Studio
Surround With I I I I I
Enables automatic addition of a portion of the respective code syntax easily Benefit :relevant code added instantly Also,errors avoided Your job :only to dress up the blank spaces Eg. to add a do while loop–steps
Introduction To . NET & Visual Studio
Project type categories
I
Window Form Applications
I
Web Forms
I
Web Services
Introduction To . NET & Visual Studio
Project type categories
I
Window Form Applications
I
Web Forms
I
Web Services:Web services are frequently just API’s that can be accessed over a network, and executed on a remote system hosting the requested services.
Introduction To . NET & Visual Studio
Solution Set Up I
Creating solutions and projects is easy
Introduction To . NET & Visual Studio
Solution Set Up I I I I I
Creating solutions and projects is easy Open visual studio .NET 2005 and go to File->New->Project Choose Visual C#->Windows on the left,and Windows Application on the right. In the name field enter enter the project name. Default location is My Documents/Visual Studio 2005/Projects.Make sure that create directory for solution is checked.
Introduction To . NET & Visual Studio
Solution Set Up I I I I I
Creating solutions and projects is easy Open visual studio .NET 2005 and go to File->New->Project Choose Visual C#->Windows on the left,and Windows Application on the right. In the name field enter enter the project name. Default location is My Documents/Visual Studio 2005/Projects.Make sure that create directory for solution is checked.
Introduction To . NET & Visual Studio
Various windows in Visual Studio
Introduction To . NET & Visual Studio
Solution Explorer Window I
Provides an overview of the solutions we’re working with
I
Lists all the files in the project
Introduction To . NET & Visual Studio
Solution Explorer Window I
Provides an overview of the solutions we’re working with
I
Lists all the files in the project
Introduction To . NET & Visual Studio
Intellisense Code Designer Window I I I I I
Responsible for the boxes that open as we type the code Provides a list of options Thereby making langusge reference easily available Helps to find the info we need Also complete the typing for us
Introduction To . NET & Visual Studio
Intellisense Code Designer Window I I I I I
Responsible for the boxes that open as we type the code Provides a list of options Thereby making langusge reference easily available Helps to find the info we need Also complete the typing for us
Introduction To . NET & Visual Studio
Code Designer Window I I I
Allows us to edit and write code Opens when we double click on a form or any control Place where all the code for the application is written
Introduction To . NET & Visual Studio
Code Designer Window I I I
Allows us to edit and write code Opens when we double click on a form or any control Place where all the code for the application is written
Introduction To . NET & Visual Studio
Code Designer Window
I
Notice 2 drop down list boxes
I
left box– allows us to select the object code
I
right box– alllows us to select the part of code we want
I
+ and - boxes in the code designer to display code visual C.
Introduction To . NET & Visual Studio
Properties Window I I
I
Allows us to set properties for various objects @ design time Changing the fontfont size, backcolor,name,textbox,text appearing on a button–change in this window viewing the properties window: F4
Introduction To . NET & Visual Studio
Properties Window I I
I
Allows us to set properties for various objects @ design time Changing the fontfont size, backcolor,name,textbox,text appearing on a button–change in this window viewing the properties window: F4
Introduction To . NET & Visual Studio
Dynamic Help Window I I I
Displays help- looks up for things automatically e.g. To get a help with a form,select the form select help, dyanamic help from main menu
Introduction To . NET & Visual Studio
Dynamic Help Window I I I
Displays help- looks up for things automatically e.g. To get a help with a form,select the form select help, dyanamic help from main menu
Introduction To . NET & Visual Studio
Toolbox Window I I I
Gives access to all controls,components etc. Contents divided using tabs Categories–Data, Components, Windows Forms and General
Introduction To . NET & Visual Studio
Toolbox Window I I I I
Gives access to all controls,components etc. Contents divided using tabs Categories–Data, Components, Windows Forms and General Data tab I
I
Forms tab I
I
Displays tools adding controls to forms
General Tab I
I
Displays tools for creating datasets and making data connections
Left empty default
Clipboard Ring Tab I
Dispalys recent items in the clipboard–can select from them
Introduction To . NET & Visual Studio
Toolbox Window I I I I
Gives access to all controls,components etc. Contents divided using tabs Categories–Data, Components, Windows Forms and General Data tab I
I
Forms tab I
I
Displays tools adding controls to forms
General Tab I
I
Displays tools for creating datasets and making data connections
Left empty default
Clipboard Ring Tab I
Dispalys recent items in the clipboard–can select from them
Introduction To . NET & Visual Studio
Other Window
I
Output
I
Command
I
Class View
I
Server Window
Introduction To . NET & Visual Studio
You are now ready to get started!
Introduction To . NET & Visual Studio
With this we now move on to our sample application
Introduction To . NET & Visual Studio