Groups | Blog | Home
all groups > dotnet windows forms > january 2006 >

dotnet windows forms : Newbie



pauldr
1/13/2006 7:45:05 PM
I have an understanding of being able to build a console application.
My challenge is, how do I take data being entered into a text box
assign it to a variable and then have the final calculation be display
in another window on the same form (using tabs) in a label. I'm at a
lost. Any assistance would be helpful.
Morten Wennevik
1/14/2006 12:06:25 PM
Hi pauldr,

This sounds very much like a school assignment, but anyway, what you need is the Text property of a TextBox and a Label control as well as a reference to both the TextBox and the Label. You typically trigger the calculation in a Button's Click event. There are many other ways to trigger the calculation as well.


[quoted text, click to view]



--
Happy coding!
pauldr
1/18/2006 8:17:54 PM
Thank you for the help. It opened my eyes to what I was doing wrong.
AddThis Social Bookmark Button