473,327 Members | 2,069 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,327 software developers and data experts.

saveFileDialog question

What is wrong with ****
What should it be?
Thank you.

private void button3_Click(object sender, System.EventArgs e)
{
{
if(saveFileDialog1.ShowDialog() == DialogResult.OK)
{
using (StreamWriter sw = new
StreamWriter(saveFileDialog1.FileName****))
{
sw.WriteLine(textBox1.Text);
}
}
}
}

Nov 17 '05 #1
1 1249
I see nothing is wrong.
I had a wrong setting in the properties box.
Thanks anyway.

I have two other questions:
(1.) How do I change the background color in a saveFileDialog?
(2.) How do I change the language shown in the dialog boxes?
I mean things like "My Computer" etc.
"Zach" <00@00.00> wrote in message
news:14***************************@freeler.nl...
What is wrong with ****
What should it be?
Thank you.

private void button3_Click(object sender, System.EventArgs e)
{
{
if(saveFileDialog1.ShowDialog() == DialogResult.OK)
{
using (StreamWriter sw = new
StreamWriter(saveFileDialog1.FileName****))
{
sw.WriteLine(textBox1.Text);
}
}
}
}

Nov 17 '05 #2

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...
2
by: Yoshi | last post by:
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...
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...
2
by: Amjad | last post by:
I'm writing a DLL code that has routines, one of which creates an Excel file and saves it, if certain conditions are met. I want the main project in the solution to call that routine in the DLL to...
2
by: BrianDH | last post by:
Hi I am using a SaveFileDialog with an RichTextBox. I am trying to save what is in the RTB as file type html. All I end up with is garbage. Dim saveFile1 As New SaveFileDialog...
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: ...
3
by: =?Utf-8?B?UmljaA==?= | last post by:
I want to create a class library project (dll) for use with a com app. The idea is to use .Net objects in com. I also want to include a SaveFileDialog in the class library. Is it possible to...
2
by: jehugaleahsa | last post by:
Hello: Correct me if I'm wrong, but it appears that saving a file with the SaveFileDialog changes the Environment.CurrentDirectory property. How can I prevent this? Thanks, Travis
0
by: Ken Snyder | last post by:
hi, i have a situation here: i have a application with a form on which you can click on a button and it will open you a savedialog where you enter a path and save some filestream context to a...
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...
1
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: 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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.