introduction in the name of allah, the beneficent, the merciful
TRANSCRIPT
![Page 1: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/1.jpg)
Introduction
www.CSharpSchool.blog.ir
In The Name Of Allah, The Beneficent, The Merciful
C#
![Page 2: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/2.jpg)
Contents
• Visual Studio 2012 IDE• Creating Applications– Console Application– Windows Forms Application– ASP.NET Web Page
• C# and the .NET Framework
2
![Page 3: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/3.jpg)
Setting the Visual C# Settings
3
![Page 4: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/4.jpg)
Visual C# Keyboard Settings
• After installing Visual Studio 2012, select the Visual C# Settings from the Default Collection of Settings window.
• This sets the keyboard commands and the user interface for the C# environment.– Run: Ctrl-F5, Debug: F5, Build: Ctrl-Shift-B, etc.– New Website command in the Start Page if you select Web
Development settings.• If you miss the window, or select another setting, then
select the command Import and Export Settings from the Tools menu.
4
![Page 5: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/5.jpg)
5
![Page 6: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/6.jpg)
6
![Page 7: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/7.jpg)
7
![Page 8: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/8.jpg)
8
![Page 9: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/9.jpg)
Creating a Console Application
9
![Page 10: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/10.jpg)
10
![Page 11: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/11.jpg)
11
![Page 12: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/12.jpg)
12
![Page 13: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/13.jpg)
13
Write the code and press Ctrl-F5
![Page 14: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/14.jpg)
14
![Page 15: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/15.jpg)
Creating a Windows Forms Application
15
![Page 16: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/16.jpg)
16
![Page 17: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/17.jpg)
17
![Page 18: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/18.jpg)
18
Drag & drop a label and button onto the form
![Page 19: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/19.jpg)
19
Double-click the button
![Page 20: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/20.jpg)
20
Write the code and press Ctrl-F5
![Page 21: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/21.jpg)
21
Click the button
![Page 22: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/22.jpg)
Creating an ASP.NET Web Page
22
![Page 23: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/23.jpg)
23
Do NOT select File -> New ->
Project -> ASP.NET Web
Forms Application
![Page 24: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/24.jpg)
24
![Page 25: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/25.jpg)
25
Right-click the project name and select Add -> Add New Item
(equivalently: Add -> Web Form)
![Page 26: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/26.jpg)
26
![Page 27: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/27.jpg)
27
Switch to Design View
![Page 28: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/28.jpg)
28
Put a Label, press the Enter key, and put a Button
![Page 29: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/29.jpg)
29
Double-click the button
![Page 30: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/30.jpg)
30
Write the code and press Ctrl-F5
![Page 31: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/31.jpg)
31
Click the button
![Page 32: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/32.jpg)
32
![Page 33: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/33.jpg)
Visual Studio 2012
• A powerful integrated development environment (IDE)• Automates the steps required to compile source code• Intelligently detect errors and suggest code where
appropriate as you are typing (Intellisense)• Includes designers, enabling simple drag&drop design of
UI elements• Includes starter projects• Enables deployment• Enables debugging• etc.
33
![Page 34: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/34.jpg)
Visual Studio Solutions
• You create solutions in Visual Studio• Solutions contain projects• Solutions can contain multiple projects– This enables you to work on shared code
34
![Page 35: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/35.jpg)
35
Solution Explorer
Properties Window
Toolbox Designer
![Page 36: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/36.jpg)
36
Source Code
SolutionProjectSource
Files
![Page 37: Introduction In The Name Of Allah, The Beneficent, The Merciful](https://reader030.vdocuments.us/reader030/viewer/2022032607/56649ed25503460f94be1a4b/html5/thumbnails/37.jpg)
با تشکر از توجه شما
عبداله صارمی نایینی1393
پایان