Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
i have a small .net program that is a form with some buttons. The output of the bottons are text displayed on msg boxes. However i want the text to be output on the same form, perhaps on another panel or something. I'm new to vb .net and would appreciate any help and suggestions on how i can display my results on the same form. What about sending the info to a file too, like word doc or something. Is a print function also available for forms?
Thanks for any help
Dave :)

Not sure what you mean by the output form Button. A button performs as function and perhaps that function generates output.
If you want any text displayed on a form, put a text box or a label on the form and put the text in there.
Text1.text = "You text goes here"
Label1.caption = "More text here"
Text can be a literal string or a variable.
The main difference between a label and a text box is that a text box can be changed, a label can't.
Stuart

"The main difference between a label and a text box is that a text box can be changed, a label can't."
Not quite right. A button (or a timer or a mouse click..etc.) can be used to change the caption of a label or even to change a labels visible property from true to false & vice versa.
Please let us know if you found someone's advice to be helpful.

![]() |
C program creator
|
Batch File Directory List...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |