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

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -