C#

C#: My First C# Application, Multiplier.

Hi,

These days i am learning c#, it is good and very addictive. If you are from “PowerShell” background like me, then at first everything seems difficult.

But, if you have to learn something you have to. simple.

The book which i am considering for learning C# is , “Head first c#”.  It is really amazing and easy to read. If you are planning to purchase any book on C#, i highly recommended this book..

images

While reading this book, side by side i have started created a MindMap on C#.It make easy to remember the things.

C# Mind Map v1

Okies.

So finally I have created my first C# Application. and that is WFA (Windows Form Application) based.

What it does?

It multiply Smile 

21-02-2013 18-16-42

Download Link (Source Code) : http://dl.dropbox.com/u/17858935/Multiplier.zip

You can download this small multiplier from the above link.

I have used “Visual Studio 2010 Professional” to create this application.

Why i shared this?

because i spent 3 hours last night to figure out , “How to convert a textbox to integer”.

The Problem.

in firstnumber box we are putting integer and firstnumberbox.text is a string, the problem is we can’t convert ‘string’ to ‘int’

21-02-2013 18-35-38

Solution

I have  used Convert.ToInt32() method to convert firstnumberbox.text to int  and everything is brighter and happy again.

21-02-2013 18-38-16

 

Thanks
Aman Dhally
 
 
clip_image001 clip_image002 clip_image003 clip_image005clip_image007