Computing.Net > Forums > Programming > help in VB

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

help in VB

Reply to Message Icon

Name: RazorXP
Date: April 23, 2004 at 09:48:54 Pacific
OS: windows xp
CPU/Ram: 1.4 amd
Comment:

this is a stupid question because i k now how to do it but i cant figure it out (i no its going to be one of those duh things) BUT i am using a file list box for viewing .txt files to load into a program that we have to make for programming and iw as just wondering what would the function be for double clicking a file in the flb and having it load that file into a textbox??

1.4 amd
pos mobo
2 gigs ddr
2 21inch montiors
radeon 9700 pro

and one of those rubber, keyboards that you can roll into a ball



Sponsored Link
Ads by Google

Response Number 1
Name: RazorXP
Date: April 23, 2004 at 09:50:12 Pacific
Reply:

sorry not for double clicking but for selecting a file and then clicking a load button

1.4 amd
pos mobo
2 gigs ddr
2 21inch montiors
radeon 9700 pro

and one of those rubber, keyboards that you can roll into a ball


0

Response Number 2
Name: StuartS
Date: April 24, 2004 at 02:25:01 Pacific
Reply:

Put the following line in the File1_click event.
Filename = File1.List(File1.ListIndex)

If your file selection also includes a DirListBox use:

Filenme = dirDirs.Path & "\" & File1.List(File1.ListIndex)

Then use LoadFile to load the file into an TextBox

Stuart


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: help in VB

if u Need help in VB email me www.computing.net/answers/programming/if-u-need-help-in-vb-email-me/1201.html

windows media player in vb.net www.computing.net/answers/programming/windows-media-player-in-vbnet/9725.html

'Whats this Help' in vB www.computing.net/answers/programming/whats-this-help-in-vb/854.html