![]() You'll see how to get at the text that a user enters. We'll now change our code slightly, and make use of the second textbox. If you see any error messages, stop the programmeĪnd look for the wiggly lines in your code. (Change it in yourīutton1 code as well.) Your code should now read: Into txtFirstName and the wiggly lines will go away. ![]() You now no longer have a textbox with this name. ![]() It's displaying this message because you changed the name of your Textbox1. If you hold your cursor of the Textbox1, you'll see this: Press F7 on your keyboard), you'll see that the wiggly lines have returned: Unfortunately, if you view your code (click the Form1.vb tab at the top, or Help us to remember what is meant to go in them. What we've done is to give the two textboxes more descriptive names. Delete the default text, and just leave it blank.Ĭlick on your first textbox to select it. The current value of the Name property is Textbox2. With the textbox selected, locate the Name property in the Properties."Gates", you can get text from a textbox and put that straight into Instead putting direct text into your variables, such as "Bill" or
0 Comments
Leave a Reply. |