473,326 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

SaveFileDialog Help

Hi Everyone!

I am using the SaveFileDialog class. I want the user to specify the "SaveAs"
filename so I can use that name when creating a text document. Here is my
question below.

When the SaveFileDialog is displayed, how do you get it to show all the
files that have the ".txt" extension? It's only showing me the folders.

Thanks,

Y
Nov 16 '05 #1
2 1619
Look up the FileDialog.Filter property...it's pretty straightforward.

ShaneB

"Yoshi" <yo***@home.com> wrote in message
news:%2******************@TK2MSFTNGP15.phx.gbl...
Hi Everyone!

I am using the SaveFileDialog class. I want the user to specify the
"SaveAs" filename so I can use that name when creating a text document.
Here is my question below.

When the SaveFileDialog is displayed, how do you get it to show all the
files that have the ".txt" extension? It's only showing me the folders.

Thanks,

Y

Nov 16 '05 #2
hi
set the Filter property of the saveFileDialog to (*.txt)|*.txt

this will work
regards
Ansil
Dimensions
Technopark Trivandrum
an****@gmail.com
"Yoshi" wrote:
Hi Everyone!

I am using the SaveFileDialog class. I want the user to specify the "SaveAs"
filename so I can use that name when creating a text document. Here is my
question below.

When the SaveFileDialog is displayed, how do you get it to show all the
files that have the ".txt" extension? It's only showing me the folders.

Thanks,

Y

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Ken Allen | last post by:
I have enocuntered something wierd. If I invoke an instance of the above dialog and elect to save the file in a directory where a file of that name does not exist, then the return is...
5
by: juli | last post by:
Hello dear fellows! Is there any chance that you know how can I upload a file with the saveFileDialog control to a specific folder-> I want any file uploaded to be save on specific folder with...
2
by: Csharper95 | last post by:
I want to get the file name and path from a SaveFileDialog (for a 'save as' operation) after the user has saved the information under a new file name (and presumably under a new path) ? I want...
8
by: Alvo von Cossel I | last post by:
hi, i have a form with a multiline textbox in it. it also has a savefiledialog. how do i save the text in the textbox? can anyone help me? i'd be grateful if you could! --
3
by: josh | last post by:
How do I make it actually save or open a file? It only opens the dialogs. What do I type to get it to save? Here's what I have so far: Public Class frmMainApp Inherits...
5
by: John | last post by:
In my VB .Net WinForm app, SaveFileDialog gives me an error msg "C:\MyFile.txt already exists. Do you want to replace it?" What I need to do is to append something to an existing file, so I want...
8
by: gopal | last post by:
Hi, I would like to display only the file names in SaveFileDialog control when i open it the Window in the without the complete file path Example if the file - -- test.doc is in folder...
17
by: Peter Duniho | last post by:
I searched using Google, on the web and in the newsgroups, and found nothing on this topic. Hopefully that means I just don't understand what I'm supposed to be doing here. :) The problem: ...
8
by: Joe Duchtel | last post by:
Hello - I have the following code to detemine a file name when my application is saving a file. The problem is that if the file already exists and I select the Yes button in the "Do you want to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.