Presentation is loading. Please wait.

Presentation is loading. Please wait.

Social Media And Global Computing Introduction to Visual Studio

Similar presentations


Presentation on theme: "Social Media And Global Computing Introduction to Visual Studio"— Presentation transcript:

1 Social Media And Global Computing Introduction to Visual Studio

2 Understanding the Visual IDE
A Windows Forms Application

3 Understanding the Visual IDE
Navigating the IDE Menu - File, Edit, View, Project, Build, Debug, Data, Tools, Windows, Help 2

4 Understanding the Visual IDE
The Most Commonly Used Features of the IDE: The Form Designer - The Code Editor The Toolbars The Toolbox The Solution Explorer The Server Explorer The Properties Window The Error List Window 3

5 Understanding the Visual IDE
The Form Designer

6 Understanding the Visual IDE
The Code Editor

7 Understanding the Visual IDE
The Toolbars

8 Understanding the Visual IDE
The Toolbox

9 Understanding the Visual IDE
The Solution Explorer

10 Understanding the Visual IDE
The Sever Explorer

11 Understanding the Visual IDE
The Properties Window

12 Understanding the Visual IDE
The Error List Window

13 Types of C# Applications Developed
Web applications Windows graphical user interface (GUI) applications Console-based applications Class libraries and stand-alone components (.dlls), smart device applications, and services can also be created

14 Web Applications C# was designed with the Internet applications in mind Can quickly build applications that run on the Web with C# Using Web Forms: part of ASP.NET Using MVC: A more modern Web development Architecture (Pattern)

15 Web Applications

16 Windows Applications Applications designed for the desktop
Designed for a single platform Use classes from System.Windows.Form namespace Applications can include menus, pictures, drop-down controls, buttons, textboxes, and labels Use drag-and-drop feature of Visual Studio

17 Windows Applications

18 Console Applications Normally send requests to the operating system
Display text on the command console Easiest to create Simplest approach to learning software development Minimal overhead for input and output of data

19 C# Elements

20 Create Console Application
Begin by opening Visual Studio Create new project Select New Project on the Start page OR use File → New Project option

21 Create New Project

22 Code Automatically Generated

23 Typing Program Statements
IntelliSense feature of the IDE Change the name of the class and the source code filename Use the Solution Explorer Window to change the source code filename Select View → Solution Explorer

24 Rename Source Code Name
Clicking Yes causes the class name to also be renamed

25 Compile and Run Application
To Compile – click Build on the Build menu To run or execute application – click Start or Start Without Debugging on the Debug menu Shortcut – if execute code that has not been compiled, automatically compiles first Start option does not hold output screen → output flashes quickly Last statement in Main( ), add Console.Read( );

26 Build Visual Studio Project

27 Running an Application

28 Debugging an Application
Types of errors (which one is harder to detect?) Syntax errors Typing error Misspelled name Forget to end a statement with a semicolon Run-time errors Failing to fully understand the problem Logical error

29 Missing ending double quotation mark
Error Listing Missing ending double quotation mark Pushpin Errors reported Figure 2-10 Syntax error message listing


Download ppt "Social Media And Global Computing Introduction to Visual Studio"

Similar presentations


Ads by Google