aspx Tutorial

.NET Articles,jQuery demo, asp.net with jQuery, online tutorial,Jquery, SilverLight, Javascript, asp.net,JSON, MVC,.NET Articles,demo, Web Services, .NET articles, Sharepoint 2010, visual studio 2010,Aamir Hasan,IT, Building Your First Web Application Project
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

Comments (4) -

Chinese Restaurant Supplies
Chinese Restaurant Supplies United States
10/12/2013 12: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 1: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

Medical MCQ
Medical MCQ United States
3/12/2014 5:29:16 AM #

please can you translate into thai

sarina valentina
sarina valentina United States
3/29/2014 8:38:50 AM #

Can I have your approval to post this on my twitter?

sarina valentina
sarina valentina United States
3/31/2014 5:02:21 PM #

Can I post this on my twitter feed?

Patrick Reisz
Patrick Reisz United States
6/11/2014 1: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.

Wilda Tryninewski
Wilda Tryninewski United States
6/14/2014 8:13:32 PM #

Ohio, cool- several dumb little one can be sobbing.

Hannaway
Hannaway United States
7/30/2014 2:10:00 PM #

An interesting dialogue is value comment. I think that you must write extra on this topic, it may not be a taboo subject however generally people are not sufficient to speak on such topics. To the next. Cheers

Peck
Peck United States
7/30/2014 3:35:35 PM #

An interesting dialogue is value comment. I think that you must write extra on this topic, it may not be a taboo subject however generally people are not sufficient to speak on such topics. To the next. Cheers

Cunneen
Cunneen United States
7/30/2014 5:00:54 PM #

hey there and thank you for your information ? I've certainly picked up something new from proper here. I did alternatively experience several technical points the use of this website, as I experienced to reload the site many times previous to I could get it to load properly. I had been brooding about in case your web hosting is OK? Now not that I am complaining, but slow loading circumstances times will sometimes impact your placement in google and could harm your high-quality score if ads and marketing with Adwords. Anyway I am adding this RSS to my email and could glance out for a lot extra of your respective fascinating content. Make sure you replace this again very soon..

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

Advertizement 1
Advertizement 2
Advertizement 3
Advertizement 4
Advertizement 5