2
Answers

Draw button in visual studio 2010 professional

Hi all ,
am developing an application using c# language, and i want to create and draw  button in my desktop application when the form is loading and opened( i mean don't take it from  the Toolbox )
after that i want to do something when click on that button that i create when the form is loading, for example i want to insert data to table !!
i need a help by providing me with code to understand this  !!!
thank's to all.

Answers (2)
0
Peter

Peter

NA 4 0 15y
That much I know.  My question is, why one PC converts 1 to string and gets "1" and the other does the same thing and gets "1.0"?
0
Manish Dwivedi

Manish Dwivedi

NA 8.3k 1.2m 15y
Hi

This is happening due to this res = "1.0" {string} while converting.

because you are using int.TryParse so u have to pass the values like 1,2,123,10 etc in the res parameter.

I think u got it.