Like this:
String no1 = first.Text;
String no2 = second.Text;
int ans = Int32.Parse(no1) + Int32.Parse(no2);
MessageBox.Show(ans.ToString());
More Related Contents:
- How to make a tabbed window as in the picture using Visual C# (Studio 2010)
- What’s wrong with my C# codes?
- Interop type cannot be embedded
- Type or namespace name does not exist [closed]
- Configuration System Failed to Initialize
- pinvokestackimbalance — how can I fix this or turn it off?
- How do I debug Windows services in Visual Studio?
- Setting the datasource for a Local Report – .NET & Report Viewer
- Writing to output window of Visual Studio
- How do I generate a constructor from class fields using Visual Studio (and/or ReSharper)?
- visual studio 2010 conditional references
- Is there a format code shortcut for Visual Studio?
- Why does TestInitialize get fired for every test in my Visual Studio unit tests?
- Shared AssemblyInfo for uniform versioning across the solution
- How to programmatically include a file in my project?
- VS2010 – How to automatically stop compile on first compile error
- How can I make implementation of an interface produce an auto property instead of NotImplementedException?
- streamWriter rewrite the file or append to the file
- How do I default Visual Studio to C# projects instead of VB.NET?
- F5 or Start Debugging Button is Greyed Out for Winform application?
- WPF C# InputBox
- WCF, Interface return type and KnownTypes
- Filtering DataGridView without changing datasource
- How can I embed an application manifest into an application using VS2008?
- Microsoft Visual Studio and C#: How to Visually Add Events to Controls?
- Check if a folder exist in a directory and create them using C#
- Writing custom code for PowerPoint using leap motion?
- How to get current working directory path c#?
- How to add config transformations for a custom config file in Visual Studio?
- Ways to access a 32bit DLL from a 64bit exe