Click here to Skip to main content
15,886,362 members
Home / Discussions / C#
   

C#

 
QuestionRe: cannot insert into database 2005 using visual c# 2008 Pin
Adekolurejo11-Jun-09 12:42
Adekolurejo11-Jun-09 12:42 
AnswerRe: cannot insert into database 2005 using visual c# 2008 Pin
Colin Angus Mackay11-Jun-09 13:08
Colin Angus Mackay11-Jun-09 13:08 
GeneralRe: cannot insert into database 2005 using visual c# 2008 Pin
Adekolurejo11-Jun-09 13:20
Adekolurejo11-Jun-09 13:20 
Questionwhat is the difference between Dictionary<> and SortedList<> Pin
Seraph_summer11-Jun-09 10:26
Seraph_summer11-Jun-09 10:26 
AnswerRe: what is the difference between Dictionary<> and SortedList<> Pin
Abhijit Jana11-Jun-09 10:33
professionalAbhijit Jana11-Jun-09 10:33 
AnswerRe: what is the difference between Dictionary<> and SortedList<> Pin
Luc Pattyn11-Jun-09 10:36
sitebuilderLuc Pattyn11-Jun-09 10:36 
GeneralRe: what is the difference between Dictionary<> and SortedList<> Pin
led mike11-Jun-09 10:43
led mike11-Jun-09 10:43 
QuestionRichTextBoxStreamType.PlainText Does not work. Pin
Baeltazor11-Jun-09 10:11
Baeltazor11-Jun-09 10:11 
Hi All. In my rich text editor everything's finished except for one thing. I want the user to be able to save the file as EITHER RTF or TXT. But when I use this:

Rtb.SaveFile(Sf.FileName, RichTextBoxStreamType.PlainText);

... It never works. The next time they open the TXT file it opens but with all the RTF formatting codes in it which makes the file ugly and unreadable and unacceptable. Does anybody know how I can fix this, or know of any other ways to do this.

I have tried doing this also, but doesn't always work:

string text = Rtb.Text;
File.WriteAllText(Sf.FileName, text);


I have been to MSDN and Google and there's a whole lot of junk on Google with no solutions. (Btw, I'm beginning to favor Microsoft's new search: Bing over Google nowadays). I'm completely baffled as to why the PlainText option does not work.

Any thoughts? Anyone?

regards,
jase
AnswerRe: RichTextBoxStreamType.PlainText Does not work. Pin
Baeltazor11-Jun-09 11:02
Baeltazor11-Jun-09 11:02 
QuestionHow to disable JavaScript in webControl hosted in a WinForm Pin
kozu11-Jun-09 10:06
kozu11-Jun-09 10:06 
AnswerRe: How to disable JavaScript in webControl hosted in a WinForm Pin
kozu11-Jun-09 10:25
kozu11-Jun-09 10:25 
GeneralRe: How to disable JavaScript in webControl hosted in a WinForm Pin
kozu11-Jun-09 13:32
kozu11-Jun-09 13:32 
QuestionText formatting Pin
Skymir11-Jun-09 9:26
Skymir11-Jun-09 9:26 
AnswerRe: Text formatting Pin
OriginalGriff11-Jun-09 10:33
mveOriginalGriff11-Jun-09 10:33 
GeneralRe: Text formatting Pin
Skymir11-Jun-09 10:46
Skymir11-Jun-09 10:46 
GeneralRe: Text formatting Pin
OriginalGriff11-Jun-09 10:55
mveOriginalGriff11-Jun-09 10:55 
GeneralRe: Text formatting Pin
Skymir11-Jun-09 11:02
Skymir11-Jun-09 11:02 
GeneralRe: Text formatting Pin
Skymir12-Jun-09 9:35
Skymir12-Jun-09 9:35 
Questiontoolstripcombobox and arraylist problem Pin
ThorTheBraveGod11-Jun-09 7:58
ThorTheBraveGod11-Jun-09 7:58 
AnswerRe: toolstripcombobox and arraylist problem Pin
ThorTheBraveGod11-Jun-09 8:21
ThorTheBraveGod11-Jun-09 8:21 
GeneralRe: toolstripcombobox and arraylist problem Pin
EliottA11-Jun-09 8:49
EliottA11-Jun-09 8:49 
QuestionAudio vedio caputing Pin
mastercpj11-Jun-09 7:31
mastercpj11-Jun-09 7:31 
AnswerRe: Audio vedio caputing Pin
molesworth11-Jun-09 7:36
molesworth11-Jun-09 7:36 
GeneralRe: Audio vedio caputing Pin
mastercpj11-Jun-09 7:45
mastercpj11-Jun-09 7:45 
GeneralRe: Audio vedio caputing Pin
EliottA11-Jun-09 7:49
EliottA11-Jun-09 7:49 

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.