Click here to Skip to main content
15,908,661 members
Home / Discussions / C#
   

C#

 
GeneralTextBox Validation Pin
| Muhammad Waqas Butt |26-Mar-05 2:04
professional| Muhammad Waqas Butt |26-Mar-05 2:04 
GeneralRe: TextBox Validation Pin
Luis Alonso Ramos26-Mar-05 7:12
Luis Alonso Ramos26-Mar-05 7:12 
GeneralRe: TextBox Validation Pin
maheshfour27-Mar-05 22:57
maheshfour27-Mar-05 22:57 
GeneralRe: TextBox Validation Pin
ameto31-Mar-05 23:19
ameto31-Mar-05 23:19 
GeneralRichTextBox question! Pin
QzRz26-Mar-05 0:47
QzRz26-Mar-05 0:47 
GeneralRe: RichTextBox question! Pin
Robert Rohde26-Mar-05 23:14
Robert Rohde26-Mar-05 23:14 
GeneralRe: RichTextBox question! Pin
QzRz26-Mar-05 23:34
QzRz26-Mar-05 23:34 
GeneralRe: RichTextBox question! Pin
Ashok Dhamija27-Mar-05 22:48
Ashok Dhamija27-Mar-05 22:48 
In your code, you are using
richTextBoxText.Select(0,0);

which is making the cursor to go to the top of the text (i.e., the position of 0 with the selected length of 0, which means simply moving the cursor over there). Try removing this last line of code.

Otherwise, the method is very simple, first select the portion whose color is to be changed. And, then use the SelectionColor property. For example-
richTextBox.Select(5,15);
richTextBox.SelectionColor = Color.Blue;

These lines of code will change the color of the text starting at point 5 and with a length of 15 characters.
GeneralRe: RichTextBox question! Pin
QzRz27-Mar-05 23:56
QzRz27-Mar-05 23:56 
GeneralRTF QUESTION! Pin
_Comet_Keeper_25-Mar-05 22:01
_Comet_Keeper_25-Mar-05 22:01 
GeneralRe: RTF QUESTION! Pin
Robert Rohde25-Mar-05 23:10
Robert Rohde25-Mar-05 23:10 
QuestionHow to display results of a console app in a textbox of another app form? Pin
oohungoo25-Mar-05 21:51
oohungoo25-Mar-05 21:51 
AnswerRe: How to display results of a console app in a textbox of another app form? Pin
JockerSoft28-Mar-05 2:21
JockerSoft28-Mar-05 2:21 
GeneralRe: How to display results of a console app in a textbox of another app form? Pin
oohungoo30-Mar-05 22:44
oohungoo30-Mar-05 22:44 
GeneralInvoking a control's inner event. Pin
rakat3325-Mar-05 21:34
rakat3325-Mar-05 21:34 
GeneralRe: Invoking a control's inner event. Pin
Mathew Hall25-Mar-05 22:45
Mathew Hall25-Mar-05 22:45 
Generalget X , Y coordinate of notifyIcon using win32 calls Pin
ThomasMiller25-Mar-05 21:14
ThomasMiller25-Mar-05 21:14 
GeneralRe: get X , Y coordinate of notifyIcon using win32 calls Pin
Heath Stewart26-Mar-05 13:22
protectorHeath Stewart26-Mar-05 13:22 
GeneralRe: get X , Y coordinate of notifyIcon using win32 calls Pin
ThomasMiller26-Mar-05 13:42
ThomasMiller26-Mar-05 13:42 
GeneralRe: get X , Y coordinate of notifyIcon using win32 calls Pin
Heath Stewart26-Mar-05 20:30
protectorHeath Stewart26-Mar-05 20:30 
GeneralRe: get X , Y coordinate of notifyIcon using win32 calls Pin
ThomasMiller27-Mar-05 5:01
ThomasMiller27-Mar-05 5:01 
GeneralRe: get X , Y coordinate of notifyIcon using win32 calls Pin
Heath Stewart27-Mar-05 5:23
protectorHeath Stewart27-Mar-05 5:23 
GeneralHi,I ask three question,it's about abnormity form,highlight keywords and linenumber. Pin
thewoodman25-Mar-05 17:53
thewoodman25-Mar-05 17:53 
GeneralRe: Hi,I ask three question,it's about abnormity form,highlight keywords and linenumber. Pin
Dave Kreskowiak26-Mar-05 15:40
mveDave Kreskowiak26-Mar-05 15:40 
GeneralOR operator in Regular Expression Pin
Azel Low25-Mar-05 17:39
Azel Low25-Mar-05 17:39 

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.