|
-
Aug 29th, 2000, 03:07 AM
#1
Thread Starter
Hyperactive Member
I used to use the Drive1, Dir1 and File1 control from VB3 onwards. But frankly speaking, they are ugly.
Do anybody can tell me how I can use the same screen as the normal ...File...Open option, as we see in MSWord or so.
If possible, will it be a control, so that I just pass in parameters?
Thanks
-
Aug 29th, 2000, 03:39 AM
#2
Fanatic Member
That is the "Microsoft Common Dialog control". Add a reference to the control in your project. Place one on the form, and happy coding.
Iain, thats with an i by the way!
-
Aug 29th, 2000, 03:49 AM
#3
Thread Starter
Hyperactive Member
I tried the common dialog, so far if I am getting a file name is OK, but how about I only want to have the path name
-
Aug 29th, 2000, 03:53 AM
#4
Fanatic Member
To get the path from a file name string.
Code:
strFilename = "c:\iain\iain\iain.txt"
MsgBox Left$(strFilename, InStrRev(strFilename, "\"))
Iain, thats with an i by the way!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|