Click here to Skip to main content
15,888,802 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to install windows service programmatically in c#. Pin
Giorgi Dalakishvili16-Jan-08 23:38
mentorGiorgi Dalakishvili16-Jan-08 23:38 
QuestionList DSN Pin
Programm3r16-Jan-08 22:37
Programm3r16-Jan-08 22:37 
GeneralRe: List DSN Pin
Jimmanuel17-Jan-08 2:43
Jimmanuel17-Jan-08 2:43 
GeneralAccess Device Driver Pin
Sun Rays16-Jan-08 22:23
Sun Rays16-Jan-08 22:23 
GeneralGet Current Working Direcotry/Folder Pin
M Riaz Bashir16-Jan-08 22:20
M Riaz Bashir16-Jan-08 22:20 
GeneralRe: Get Current Working Direcotry/Folder Pin
C-Scharbe16-Jan-08 22:48
C-Scharbe16-Jan-08 22:48 
GeneralRe: Get Current Working Direcotry/Folder Pin
Giorgi Dalakishvili16-Jan-08 23:43
mentorGiorgi Dalakishvili16-Jan-08 23:43 
GeneralRichTextBox ForeColor Problem [modified] Pin
half-life16-Jan-08 20:25
half-life16-Jan-08 20:25 
Hi,

i've got kind of a strange problem :

this is the Code :

<br />
<br />
rtbMsg.Text += Msg_Err;<br />
int pos = rtbMsg.Find(Msg_Err, RichTextBoxFinds.MatchCase);<br />
rtbMsg.SelectionFont = new Font(rtbMsg.Font.FontFamily, rtbMsg.Font.Size, FontStyle.Bold);<br />
rtbMsg.SelectionStart = pos;<br />
rtbMsg.SelectionLength = Msg_Err.Length;<br />
rtbMsg.SelectionColor = Color.Red;<br />
<br />


the problem is that the app "Stucks" because of this section of the code
this code is a part of a function that is called to update Messages for the user
the error messages comes in tcp/ip analyzed and if the message is an Error message it's displayed

and the color of the message should be red (Selection...)

when i remove this code every thing works but the Error message looks just like Ordinary Messages

This is funny Smile | :)

Where did i went wrong?
THANKS Smile | :)

Have Fun
Never forget it

modified on Thursday, January 17, 2008 2:50:21 AM

GeneralRe: RichTextBox ForeColor Problem Pin
Luc Pattyn16-Jan-08 22:25
sitebuilderLuc Pattyn16-Jan-08 22:25 
GeneralRe: RichTextBox ForeColor Problem Pin
half-life17-Jan-08 1:16
half-life17-Jan-08 1:16 
GeneralRe: RichTextBox ForeColor Problem Pin
Luc Pattyn17-Jan-08 2:26
sitebuilderLuc Pattyn17-Jan-08 2:26 
GeneralRe: RichTextBox ForeColor Problem Pin
half-life17-Jan-08 5:36
half-life17-Jan-08 5:36 
GeneralRe: RichTextBox ForeColor Problem Pin
Luc Pattyn17-Jan-08 6:06
sitebuilderLuc Pattyn17-Jan-08 6:06 
GeneralSending Free Sms [modified] Pin
razanabanu16-Jan-08 18:23
razanabanu16-Jan-08 18:23 
GeneralRe: Sending Sms Pin
Abhijit Jana16-Jan-08 18:41
professionalAbhijit Jana16-Jan-08 18:41 
Generalpopulate data to generic list from classes using c# Pin
ramyanaidu16-Jan-08 18:07
ramyanaidu16-Jan-08 18:07 
GeneralRe: populate data to generic list from classes using c# [modified] Pin
DaveyM6917-Jan-08 3:07
professionalDaveyM6917-Jan-08 3:07 
GeneralRe: populate data to generic list from classes using c# Pin
ramyanaidu17-Jan-08 17:22
ramyanaidu17-Jan-08 17:22 
Generalprogram can but run only one instance Pin
jason_mf16-Jan-08 17:22
jason_mf16-Jan-08 17:22 
GeneralDatabase is slooowwwww Pin
Jacob Dixon16-Jan-08 15:51
Jacob Dixon16-Jan-08 15:51 
GeneralCreating HTML Encrypter using C# Pin
Nadia Monalisa16-Jan-08 12:14
Nadia Monalisa16-Jan-08 12:14 
GeneralRe: Creating HTML Encrypter using C# Pin
Gareth H16-Jan-08 12:21
Gareth H16-Jan-08 12:21 
GeneralRe: Creating HTML Encrypter using C# Pin
Nadia Monalisa16-Jan-08 12:48
Nadia Monalisa16-Jan-08 12:48 
GeneralRe: Creating HTML Encrypter using C# Pin
Ennis Ray Lynch, Jr.16-Jan-08 15:07
Ennis Ray Lynch, Jr.16-Jan-08 15:07 
GeneralLoad Image File Pin
MasterSharp16-Jan-08 11:38
MasterSharp16-Jan-08 11:38 

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.