-
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
-
That is the "Microsoft Common Dialog control". Add a reference to the control in your project. Place one on the form, and happy coding.
-
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
-
To get the path from a file name string.
Code:
strFilename = "c:\iain\iain\iain.txt"
MsgBox Left$(strFilename, InStrRev(strFilename, "\"))