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

SaveFileDialog box VB.net

Status
Not open for further replies.

slowNsteady

Programmer
May 29, 2009
22
0
0
US
Hi
how to assign the current working directory to savefiledialog box.

Say for example

If i open a file Sample_Address.xls from

path = C:\Temp_Folder\VB_Projects\Sample\Sample_Address.xls

then if i hit SaveAs then it should open in the same folder

i tried coding like below also
Savefiledialog1.initialdirectory = path
Savefiledialog1.Restoredirectory = true

it is not opening with Path instead it is opening the dialog with Desktop

help me


thanks in advance
Sri

 
Try this
Code:
path = IO.Path.GetDirectoryName( "C:\Temp_Folder\VB_Projects\Sample\Sample_Address.xls")

Good luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top