Displaying an int variable in TextBox/Label in Visual C# -
i creating first c# project, can't find way display integer variable in textbox or label. using visual c# , visual studio 2013.
i have been using c++ quite while , intuitively use 'cout', have no idea put fe: textbox4.text = cal
(where cal variable).
but have no idea put fe: textbox4.text = cal (where cal variable).
you should put code inside of method.it can form_load event, or button
click, example add button form designer (drag , drop toolbox),double click button , put code inside of button click event:
textbox4.text = cal.tostring();
Comments
Post a Comment