aspx Tutorial

NET Articles,jQuery demo, asp.net with jQuery, online tutorial,Jquery, SilverLight, Javascript, asp.net,JSON, MVC,.NET Articles,demo, Web Services,
Advertise Here

Toolbar

Get our toolbar!

Advertize



Posted by Aamir Hasan   on Tuesday, July 27, 2010 Total Views:  

In this tutorial i am going to create a simple Window Form In Visual Studio 2010 using csharp that will Add two number and display it.This tutorial will help those developer who have not worked in Visual studio 2010 and who are going to write there first form using csharp language.


To create a new project, open you Visual Studio 2010. on the File Menu click on New Project. New Project Window will be display on your screen. Expand Visual C#, select Windows and select Windows Forms Application,Click on Ok button  as shown in Figure 1.1

Figure 1.1


Form1 will be display on your screen when you create a Windows Forms Application as shown in Figure 1.2

Figure 1.2


Drap Two TextBox's, three Label's and one Button as shown in Figure 1.3

Figure 1.3


To display the results, Doube click on Button1 as shown in Figure 1.4

Figure 1.4


Declare variables number1 and number2 and get textbox1 and  textbox2 text and pass it to number1 and number2.Add two number1, number2 values and pass it to answer variable and pass to label3 as shown in Figure 1.5

Figure 1.5


Press F5 to display the Form1 on the screen as shown in Figure 1.6

Figure 1.6

 


Enter 5 interger in textbox1 and textbox2. Click on Submit button 10 value will be return in Label1 as shown in Figure 1.7

Figure 1.7

 

Download

AddTwoNumbers.zip (39.91 kb)

Protected by Copyscape Online Plagiarism Tool

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

Advertizement 1
Advertizement 2
Advertizement 3
Advertizement 4
Advertizement 5