472,977 Members | 1,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,977 software developers and data experts.

Text Box

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.
Jun 27 '08 #1
5 2011
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
Jun 27 '08 #2
Just try

textbox2.text = textbox1.text;

and this will resolve the issue.

--
Regards,
Mudassar Hassan
Software Engineer
http://mudassarhassan.spaces.live.com/
"tracktor" wrote:
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.
Jun 27 '08 #3
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.

"Marc Gravell" wrote:
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
Jun 27 '08 #4
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
Jun 27 '08 #5
Thanks Marc

"Marc Gravell" wrote:
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
Jun 27 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: joes | last post by:
Hello there ! I rendering a PDF with XSLT using Xalan and FOP. I like to place in my article an image, so that the text is floating around the image. I tried several things but it didn't work so...
3
by: Xerxes | last post by:
Hi, I need help in setting up a page where the text wraps around an image. Right now, I am using table, with text in one <td> and the image in the adjacent <td>. The problem is when the text is...
2
by: Macsicarr | last post by:
Hi All Wonder if you could help me. I have created a CMS system that allows the user to enter text and pic 'tags' for their own About us page, eg text.... text.... text.... text.......
2
by: Jiri Palecek | last post by:
I have a question on web authoring (probably HTML+CSS). Is it somehow possible to put two words above each other inside a paragraph so the result would be valid and render at least in Mozilla? I...
4
by: Arif Çimen | last post by:
Hi to everybody, I have chnged a button text in design mode. But After compiling and executing the program the text of the button do not change to new value. Any Ideas? Thaks for helps.
3
by: jweinberg1975 | last post by:
I would like for users to be able to select from a small number of options that come from a little drop down menu which then closes. .....
3
by: bbepristis | last post by:
Hey all I have this code that reads from one text file writes to another unless im on a certian line then it writes the new data however it only seems to do about 40 lines then quits and I cant...
3
by: acecraig100 | last post by:
I am fairly new to Javascript. I have a form that users fill out to enter an animal to exhibit at a fair. Because we have no way of knowing, how many animals a user may enter, I created a table...
3
by: jonniethecodeprince | last post by:
Hi all, I have trouble getting an array of data stored in a separate javascript file i.e. a file called books.js into a table of data for a .xhtml file. There are 50 Records in this file....
10
by: bluemountain | last post by:
Hi there, Iam new to python forms and programming too I had a text file where i need to extract few words of data from the header(which is of 3 lines) and search for the keyword TEXT1, TEXT2,...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.