Click here to Skip to main content
15,905,508 members
Home / Discussions / C#
   

C#

 
GeneralTricky One.. Pin
Rocky Moore7-Jun-03 0:53
Rocky Moore7-Jun-03 0:53 
GeneralRe: Tricky One.. Pin
A.Wegierski7-Jun-03 5:27
A.Wegierski7-Jun-03 5:27 
GeneralRe: Tricky One.. Pin
Rocky Moore7-Jun-03 13:37
Rocky Moore7-Jun-03 13:37 
GeneralRe: Tricky One.. Pin
jspano7-Jun-03 17:04
jspano7-Jun-03 17:04 
GeneralHelp Creation software Pin
Andrew Torrance6-Jun-03 23:15
Andrew Torrance6-Jun-03 23:15 
GeneralRe: Help Creation software Pin
Vasudevan Deepak Kumar6-Jun-03 23:59
Vasudevan Deepak Kumar6-Jun-03 23:59 
GeneralRe: Help Creation software Pin
Laimis7-Jun-03 9:37
Laimis7-Jun-03 9:37 
GeneralBinding stream to richtextbox Pin
haezeban6-Jun-03 21:52
haezeban6-Jun-03 21:52 
I have a stream that I want to change before I bind it to a
richtextbox.
I don't want to save the stream.
It seems that I have to save it other ways I cannot bind
it to the textbox.

Example :

//Read template Form
FileStream fsTemp = new FileStream
@"c:\..\TemplateLayout.rtf", FileMode.Open,
FileAccess.Read);
StreamReader srTemp = new StreamReader(fsTemp);
string strTemp = srTemp.ReadToEnd();
strTemp = Regex.Replace(strTemp, "Number", base.Number);

string strFileOut = @"c:\..\Layout.rtf" ;
FileStream FileOut = new FileStream(strFileOut,
FileMode.OpenOrCreate, FileAccess.Write);
StreamWriter w1 = new StreamWriter(FileOut);
w1.WriteLine(strTemp);
w1.Close();
base.TxT01.LoadFile
(@"c:\..\Layout.rtf",RichTextBoxStreamType.RichText);

How can I do the same thing without saving the stream?

Thanks,
x

.


GeneralRe: Binding stream to richtextbox Pin
leppie7-Jun-03 3:04
leppie7-Jun-03 3:04 
GeneralRe: Binding stream to richtextbox Pin
haezeban9-Jun-03 9:56
haezeban9-Jun-03 9:56 
QuestionPure MTA Windows.Forms? Pin
jwb776-Jun-03 19:58
jwb776-Jun-03 19:58 
AnswerRe: Pure MTA Windows.Forms? Pin
Laimis7-Jun-03 9:39
Laimis7-Jun-03 9:39 
AnswerRe: Pure MTA Windows.Forms? Pin
A.Wegierski8-Jun-03 18:47
A.Wegierski8-Jun-03 18:47 
GeneralApplication crash Pin
Kant6-Jun-03 17:15
Kant6-Jun-03 17:15 
GeneralRe: Application crash Pin
leppie7-Jun-03 3:50
leppie7-Jun-03 3:50 
GeneralRe: Application crash Pin
Kant7-Jun-03 5:06
Kant7-Jun-03 5:06 
GeneralRe: Application crash Pin
leppie7-Jun-03 5:29
leppie7-Jun-03 5:29 
GeneralRe: Application crash Pin
Kant7-Jun-03 5:57
Kant7-Jun-03 5:57 
GeneralTwo free MSFT e-books Pin
Kant6-Jun-03 15:48
Kant6-Jun-03 15:48 
QuestionDataView.RowFilter? Pin
gadgetfbi6-Jun-03 14:04
gadgetfbi6-Jun-03 14:04 
AnswerRe: DataView.RowFilter? Pin
Rocky Moore6-Jun-03 15:53
Rocky Moore6-Jun-03 15:53 
GeneralRe: DataView.RowFilter? Pin
gadgetfbi7-Jun-03 3:57
gadgetfbi7-Jun-03 3:57 
GeneralRe: DataView.RowFilter? Pin
Rocky Moore7-Jun-03 13:10
Rocky Moore7-Jun-03 13:10 
GeneralCompiler Error Pin
YagiSka6-Jun-03 12:50
YagiSka6-Jun-03 12:50 
GeneralRe: Compiler Error Pin
James T. Johnson6-Jun-03 13:09
James T. Johnson6-Jun-03 13:09 

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.