aspx Tutorial

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


Get our toolbar!


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 (39.91 kb)

Protected by Copyscape Online Plagiarism Tool

Comments (3) -

Chinese Restaurant Supplies
Chinese Restaurant Supplies United States
10/12/2013 5:30:20 PM #

Hi, i read your blog occasionally and i own a similar one and i was just curious if you get a lot of spam comments? If so how do you reduce it, any plugin or anything you can suggest? I get so much lately it's driving me crazy so any assistance is very much appreciated.|

Medical MCQ
Medical MCQ United States
3/7/2014 6:55:11 AM #

LMAO ! I just found a glitch in your website! Check if  theme is managed correctly!Find solution at Watch Movies Online For Free Without Downloading

Patrick Reisz
Patrick Reisz United States
6/11/2014 6:51:56 AM #

Our little princess hid our tobacco all over again. Expect the girl likes locating saran-wrapped bits of Mr. Cuddles with her development work schedule.

Add comment

  Country flag

  • Comment
  • Preview

Advertizement 1
Advertizement 2
Advertizement 3
Advertizement 4
Advertizement 5