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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clear Commondialog.filename ? 1

Status
Not open for further replies.

londonkiwi

Programmer
Sep 25, 2000
83
0
0
NZ
I am running a series of Common Dialog file selection routines. I want to clear the commondialog.filename between selections (so the last selected filename is not visible).

Is the command something like Clear cdlg.Filename??

Thanks in advance
 
Well, you can simply do cdlg.Filename = "" and it should work.
 
If you initialise the filename when you call the routine it will not retain the last file chosen.
eg
CommonDialog1.FileName = ""
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top