Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hey guys, I'm trying to learn visual basic.net on my own for a school project I'm doing. I've been reading some online tutorials but can't find an example of this. What I'm trying to do is make a very simple user interface. Here is one of the functions I need to do that I can't figure out:

 

I have two text boxes, Box A and Box B. Under the boxes I have two buttons, Button A and Button B. I want to click on Button A, open an Input Box, enter a value, and have that value passed and displayed to Text Box A. So far I have the input box working fine and able to store the variable. How do I display this variable in the Text Box? Any help will be greatly appreciated! Thanks!

  • *Experts*
Posted

Use this:

textboxname.Text = InputBox("whatever you have here")

You said you make a simple interface, but when you get into more complicated stuff dont use InputBoxes, they are old, not part of the .NET framework and look ugly :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...