mach278 Posted June 12, 2003 Posted June 12, 2003 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! Quote
*Experts* mutant Posted June 12, 2003 *Experts* Posted June 12, 2003 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 :) Quote
ThePentiumGuy Posted June 12, 2003 Posted June 12, 2003 wait, then what would you use in place of an inputbox(in mach278's case) Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
*Experts* mutant Posted June 12, 2003 *Experts* Posted June 12, 2003 Your own-made form, shown as modal, and with dialog properties set for buttons. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.