Click here to Skip to main content
15,889,034 members
Home / Discussions / C#
   

C#

 
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 
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 
Yeh U a right
first of all : ihave two default font (rFont, bFont)
i wrote this method to be general :

is it Better?

<br />
<br />
// i have about 7 different RichTextBoxs for each channel (all of them are in TabControl)<br />
// the Reson i Call ChangeRTB_Text with RichTextBox rtb is beause i anlayze By the Message to <br />
// which Channel to send it<br />
        private void ChangeRTB_Text(RichTextBox rtb, string strToWrite, Color cText, Font fnt)<br />
        {<br />
            rtb.Text += strToWrite;<br />
            rtb.SelectedText = strToWrite;<br />
            rtb.SelectionFont = fnt;<br />
            rtb.SelectionColor = cText;<br />
i've Tried This Also :<br />
                /*int pos = rtb.Text.Length;<br />
                rtb.Text += strToWrite;<br />
                rtb.SelectionStart = pos;<br />
                rtb.SelectionLength = strToWrite.Length;<br />
                rtb.SelectionFont = fnt                <br />
                rtb.SelectionColor = cText;*/<br />
        }<br />


the IMPORTANT thing is that there is a Thread That Recive Messages (TCP/IP)
and when it identifyed a Message That sholud be an Error
it Sends by an Event To The form, There (in the Form) Comes the :

<br />
<br />
ChangeRTB_Text(rtbmsg, Msg, Color.Red, bFont); OR<br />
ChangeRTB_Text(rtbmsg, Msg, Color.Green, rFont);<br />
<br />



THNKS ANYWAY Smile | :)

Have Fun
Never forget it

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 
GeneralRe: Load Image File Pin
Gareth H16-Jan-08 11:57
Gareth H16-Jan-08 11:57 
GeneralRe: Load Image File Pin
MasterSharp16-Jan-08 12:03
MasterSharp16-Jan-08 12:03 

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.