Assuming youre using C#, you can use many visual basic.net examples
Make a new windows form
make 2 text boxes from the tools thing on the left side
make 1 button also
Now view the code and just after the CLASS definition, make your variable
str a public variable like this:
partial class Form1 : Form
{
public string str;
This way your program can operate on the same variable, giving it a larger
SCOPE
double click on the first textbox
inside the brackets, type
str = textBox1.Text;
now double click on the button, inside those brackets, type
textBox2.Text = str;
Id suggest trying to operate on button clicks instead of using the
enter/return button for now, because you have to have the focus on your
textbox for the return button to act as a click for that box
"AngryWhiteBoy" <An***********@discussions.microsoft.com> wrote in message
news:D8**********************************@microsof t.com...
I was wondering how I would go about outputting text into a textbox1 as
well as getting data entered into it by the user?
Example:
I ask: Input cash amount:
Then below that
they put in $24.54 hit enter
more or less how to make the textbox act like a console application...