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..
While reading this book, side by side i have started created a MindMap on C#.It make easy to remember the things.
So finally I have created my first C# Application. and that is WFA (Windows Form Application) based.
What it does?
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”.
in firstnumber box we are putting integer and firstnumberbox.text is a string, the problem is we can’t convert ‘string’ to ‘int’
I have used Convert.ToInt32() method to convert firstnumberbox.text to int and everything is brighter and happy again.