Text Box

  • Thread starter Thread starter tracktor
  • Start date Start date
T

tracktor

I am trying to learn how to program and have an exercise to complete that I
have no idea where to begin. The exercise is "Create a new project and add 2
text boxes and 1 button to the form. Write code that, when the button is
clicked, places the text in the first text box into the second text box.
Hint: Use the Text property of the text box controls."

I have created the interface and am trying to code the button to execute the
action but not sure what to do.

any help is appreciated.
 
If you double click on the button, it will create an event-handler and
link it up, so all you need to do is add some code.

For example, inside the "{something}_Click" method it creates, you could
write (guessing at the names):

textBox2.Text = textBox1.Text;

Does that get yuo started?

Marc
 
That did it! Thanks

I am reading "Teach Yourself C# in 24 hours" where this exercise came from.
I am new to programming and determined to learn to program. This is the very
first book I have picked up on programming. And I knew nothing about
programming before I picked it up. I can tell that this isn't going to be
something that I or anyone will learn in 24 hours, because I have over that
amount of time invested and I am only in chapter 3. They should rename this
book to "Teach Yourself C# in 10 years, lesson 1 of 1000" LOL

I already have ASP.Net 2.0 in 24 hours, SQL in 24 hours, C# in 21 days and
Visual Studios.Net 2003 in 21 days, that I intend on reading to help me
learn. Is there any recomendations that you might have that will help me
learn to program?

Your help is much appreciated.
 
Is there any recomendations that you might have that will help me
learn to program?

Stick at it. To be honest though, I would be extremely dubious of any
book with "in 24 hours" in the title unless it is aimed at the
experienced developer, but in a different area (for example, a C#
developer could probably pick up the language basics of VB.NET in 24
hours - but that still wouldn't make them a "VB developer" properly).

The main thing is to ensure that whatever book (etc) you use is aimed at
your current leve.

Marc
 
Thanks Marc

Marc Gravell said:
Stick at it. To be honest though, I would be extremely dubious of any
book with "in 24 hours" in the title unless it is aimed at the
experienced developer, but in a different area (for example, a C#
developer could probably pick up the language basics of VB.NET in 24
hours - but that still wouldn't make them a "VB developer" properly).

The main thing is to ensure that whatever book (etc) you use is aimed at
your current leve.

Marc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top