Setting a default path in to save files using save file dialog
-
7 martie 2012 07:23
Hey There,
I am trying this since the past week, but no results seem to be found. I am trying to set a default path to the savefiledialog in VB.Net. So whenever the user enters text in the Multiline textbox, and clicks on save, the documents gets saved as a text file to some predefined location (The user cannot select his/her desired path).
Regards,
Hitesh
- Editat de HiteshSuvarna 7 martie 2012 07:23
Toate mesajele
-
7 martie 2012 10:53
Hitesh,
Probably I don't understand your question, but the default path is the initialdirectory
http://msdn.microsoft.com/en-us/library/microsoft.win32.filedialog.initialdirectory.aspx
The default file type you can set using the filter property,
http://msdn.microsoft.com/en-us/library/microsoft.win32.filedialog.filter.aspx
Success
Cor- Propus ca răspuns de Jordan St. Godard 7 martie 2012 18:18
-
7 martie 2012 10:57
I am trying to set a default path to the savefiledialog in VB.Net. So whenever the user enters text in the Multiline textbox, and clicks on save, the documents gets saved as a text file to some predefined location (The user cannot select his/her desired path)
If you don't want the user to select the path then don't use a SaveFileDialog, just hard code the path (or preferably create a setting for it)
- Propus ca răspuns de Jordan St. Godard 7 martie 2012 18:19
- Marcat ca răspuns de HiteshSuvarna 7 martie 2012 18:23