Click here to Skip to main content
15,890,123 members
Home / Discussions / C#
   

C#

 
QuestionC# XML text file won't save to Desktop or MyDocuments Pin
Wheels01211-Sep-09 8:16
Wheels01211-Sep-09 8:16 
AnswerRe: C# XML text file won't save to Desktop or MyDocuments Pin
Luc Pattyn11-Sep-09 9:16
sitebuilderLuc Pattyn11-Sep-09 9:16 
GeneralRe: C# XML text file won't save to Desktop or MyDocuments Pin
Wheels01211-Sep-09 9:18
Wheels01211-Sep-09 9:18 
AnswerRe: C# XML text file won't save to Desktop or MyDocuments Pin
PIEBALDconsult11-Sep-09 12:04
mvePIEBALDconsult11-Sep-09 12:04 
AnswerRe: C# XML text file won't save to Desktop or MyDocuments Pin
Luc Pattyn11-Sep-09 13:13
sitebuilderLuc Pattyn11-Sep-09 13:13 
GeneralRe: C# XML text file won't save to Desktop or MyDocuments Pin
Christian Graus11-Sep-09 13:34
protectorChristian Graus11-Sep-09 13:34 
GeneralRe: C# XML text file won't save to Desktop or MyDocuments Pin
Luc Pattyn11-Sep-09 13:48
sitebuilderLuc Pattyn11-Sep-09 13:48 
AnswerRe: C# XML text file won't save to Desktop or MyDocuments Pin
April Fans21-Sep-09 20:03
April Fans21-Sep-09 20:03 
//give you a example, may help you
if(saveFileDialog.ShowDialog()==DialogResult.OK)
{
fName=saveFileDialog.FileName;
File fSaveAs=new File(fName);
isFileHaveName=true;
fSaveAs.WriteFile(richTextBox1.Text);
}

//you should use try...Catch{}...
try
{
// open and write file
}
catch
{
// file exception
}
finally
{
sw.close();
}
April

Comm100 - Leading Live Chat Software Provider

Questionhow can create Extension for document created in my project Pin
santosh_anu11-Sep-09 7:58
santosh_anu11-Sep-09 7:58 
AnswerRe: how can create Extension for document created in my project Pin
Not Active11-Sep-09 8:11
mentorNot Active11-Sep-09 8:11 
GeneralRe: how can create Extension for document created in my project Pin
santosh_anu11-Sep-09 8:52
santosh_anu11-Sep-09 8:52 
GeneralRe: how can create Extension for document created in my project Pin
Not Active11-Sep-09 9:14
mentorNot Active11-Sep-09 9:14 
GeneralRe: how can create Extension for document created in my project Pin
santosh_anu11-Sep-09 20:50
santosh_anu11-Sep-09 20:50 
GeneralRe: how can create Extension for document created in my project Pin
Not Active12-Sep-09 3:43
mentorNot Active12-Sep-09 3:43 
AnswerRe: how can create Extension for document created in my project Pin
PIEBALDconsult11-Sep-09 11:51
mvePIEBALDconsult11-Sep-09 11:51 
GeneralRe: how can create Extension for document created in my project Pin
santosh_anu12-Sep-09 6:00
santosh_anu12-Sep-09 6:00 
GeneralRe: how can create Extension for document created in my project Pin
PIEBALDconsult12-Sep-09 12:40
mvePIEBALDconsult12-Sep-09 12:40 
AnswerRe: how can create Extension for document created in my project Pin
April Fans21-Sep-09 20:21
April Fans21-Sep-09 20:21 
GeneralRe: how can create Extension for document created in my project Pin
santosh_anu21-Sep-09 21:04
santosh_anu21-Sep-09 21:04 
QuestionHowto: Show Additional linked Data from Database into Crystal Report Detail Section Pin
Sukhjinder_K11-Sep-09 6:31
Sukhjinder_K11-Sep-09 6:31 
QuestionImage in WebBrowser Pin
AmirNapster11-Sep-09 5:22
AmirNapster11-Sep-09 5:22 
AnswerRe: Image in WebBrowser Pin
Not Active11-Sep-09 6:18
mentorNot Active11-Sep-09 6:18 
GeneralRe: Image in WebBrowser Pin
AmirNapster11-Sep-09 6:47
AmirNapster11-Sep-09 6:47 
GeneralRe: Image in WebBrowser Pin
Not Active11-Sep-09 7:08
mentorNot Active11-Sep-09 7:08 
GeneralRe: Image in WebBrowser Pin
AmirNapster11-Sep-09 7:12
AmirNapster11-Sep-09 7:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.