Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sorry but I have a newbie question

Status
Not open for further replies.

jbeck22

Technical User
Sep 17, 2003
7
US
I have a form that has a text box on it and beside it there is a button that you can push that opens the selectfolderdialog script so that you can choose a folder. That part works just fine, but I want to have whatver you select when you push the button to appear in my text box. I know this is pretty simple but I just can't remember how to do it.

Also what do I need to do in order to take my VB code and make a .exe file to run my code?

Thanks...hope I wasn't too confusing.
 
Add a line like this in either change (effectively the double click) or click event of the dirlist control as needed.

Text1.Text = Dir1.List(Dir1.ListIndex)

To compile select make <exename> from the VB file menu
 
Hello:

Just a tip.. if you make your code a .exe sometimes the program may not run in other computers, in that case download the visual basic 6.0 runtimes in download.com
 
Or you can this make a package with the P&D wizard or VS Installer?

**********************************
May the Code Be With You...
----------
x50-8 (X Fifty Eigt)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top