Click here to Skip to main content
15,867,488 members
Home / Discussions / C#
   

C#

 
QuestionFill After Insert Fails Pin
rich_wenger6-Sep-05 2:00
rich_wenger6-Sep-05 2:00 
AnswerRe: Fill After Insert Fails Pin
John Fisher6-Sep-05 4:53
John Fisher6-Sep-05 4:53 
QuestionUnload DOM Pin
ksanju10006-Sep-05 1:28
ksanju10006-Sep-05 1:28 
AnswerRe: Unload DOM Pin
John Fisher6-Sep-05 5:21
John Fisher6-Sep-05 5:21 
GeneralRe: Unload DOM Pin
ksanju10006-Sep-05 20:35
ksanju10006-Sep-05 20:35 
GeneralRe: Unload DOM Pin
John Fisher7-Sep-05 4:09
John Fisher7-Sep-05 4:09 
QuestionWeb Services in VS 2003 Pin
seee sharp6-Sep-05 1:22
seee sharp6-Sep-05 1:22 
QuestionRichetextbox problem again Pin
snouto6-Sep-05 1:13
snouto6-Sep-05 1:13 
Hello dudes ?
I have another problem i use richtextbox to edit some text but i don't know how to insert multiple lines of text in that richtextbox but i need each line with its specific font and color attributes i used this code my friend gave me here is the code
<br />
string message = "Snouto : " + textBox1.Text;<br />
			richTextBox1.Text += message + "\r\n";<br />
			int pos = 0;<br />
			while(pos < richTextBox1.TextLength)<br />
			{<br />
				int index = richTextBox1.Find(textBox1.Text,pos,RichTextBoxFinds.None);<br />
				if(index == -1)<br />
					break;<br />
				richTextBox1.Select(index,textBox1.Text.Length);<br />
				richTextBox1.SelectionFont = fontDialog1.Font;<br />
				richTextBox1.SelectionColor = colorDialog1.Color;<br />
				pos = index + RichTextBox1.TextLength;<br />
			}<br />
			textBox1.Clear();<br />

but this code when i write one sentence ok it changes its font and color but when i write again the same sentence it changes the color and font of the first sentence to the defaul color and font and then it gives the new same sentence the changes in font and color i need to insert multiple lines of text and give each one color and font without being changed if i inserted again the same sentences what can i do ?
Please help me

Miss With The Best And Die Like The Rest

-- modified at 7:17 Tuesday 6th September, 2005
AnswerRe: Richetextbox problem again Pin
S. Senthil Kumar6-Sep-05 1:51
S. Senthil Kumar6-Sep-05 1:51 
GeneralRe: Richetextbox problem again Pin
snouto6-Sep-05 2:08
snouto6-Sep-05 2:08 
GeneralRe: Richetextbox problem again Pin
S. Senthil Kumar6-Sep-05 2:46
S. Senthil Kumar6-Sep-05 2:46 
QuestionBase Class problem with forms Pin
Russell Jones6-Sep-05 0:34
Russell Jones6-Sep-05 0:34 
AnswerRe: Base Class problem with forms Pin
S. Senthil Kumar6-Sep-05 2:00
S. Senthil Kumar6-Sep-05 2:00 
GeneralRe: Base Class problem with forms Pin
Russell Jones6-Sep-05 2:33
Russell Jones6-Sep-05 2:33 
QuestionThreading and Forms Pin
Dani Duran Kenobi6-Sep-05 0:33
Dani Duran Kenobi6-Sep-05 0:33 
AnswerRe: Threading and Forms Pin
S. Senthil Kumar6-Sep-05 2:04
S. Senthil Kumar6-Sep-05 2:04 
QuestionControl Problems? Pin
Simon Wren5-Sep-05 23:36
professionalSimon Wren5-Sep-05 23:36 
AnswerRe: Control Problems? Pin
S. Senthil Kumar6-Sep-05 2:12
S. Senthil Kumar6-Sep-05 2:12 
GeneralRe: Control Problems? Pin
Simon Wren6-Sep-05 2:14
professionalSimon Wren6-Sep-05 2:14 
Questioncan i access my lan pc from out side lan using remoting Pin
Mayank Chauhan5-Sep-05 23:33
Mayank Chauhan5-Sep-05 23:33 
QuestionTAB KEY AND DATAGRID CELLS Pin
Greeky5-Sep-05 23:30
Greeky5-Sep-05 23:30 
AnswerRe: TAB KEY AND DATAGRID CELLS Pin
miah alom6-Sep-05 3:05
miah alom6-Sep-05 3:05 
QuestionIntPtr usage! Pin
Duong Tien Nam5-Sep-05 23:19
Duong Tien Nam5-Sep-05 23:19 
AnswerRe: IntPtr usage! Pin
S. Senthil Kumar6-Sep-05 2:17
S. Senthil Kumar6-Sep-05 2:17 
AnswerRe: IntPtr usage! Pin
Daniel Turini6-Sep-05 4:06
Daniel Turini6-Sep-05 4:06 

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.