Click here to Skip to main content
15,912,400 members
Home / Discussions / C#
   

C#

 
QuestionWho tells an object the application wants to exit and where? Pin
LuCasn7-Jan-08 2:40
LuCasn7-Jan-08 2:40 
GeneralRe: Who tells an object the application wants to exit and where? Pin
Skippums7-Jan-08 3:09
Skippums7-Jan-08 3:09 
GeneralRe: Who tells an object the application wants to exit and where? Pin
LuCasn7-Jan-08 3:15
LuCasn7-Jan-08 3:15 
GeneralRe: Who tells an object the application wants to exit and where? Pin
Skippums7-Jan-08 3:24
Skippums7-Jan-08 3:24 
GeneralRe: Who tells an object the application wants to exit and where? Pin
LuCasn7-Jan-08 3:36
LuCasn7-Jan-08 3:36 
QuestionRichTextBox Find Method Pin
Programm3r7-Jan-08 2:18
Programm3r7-Jan-08 2:18 
GeneralRe: RichTextBox Find Method Pin
Skippums7-Jan-08 2:38
Skippums7-Jan-08 2:38 
QuestionRe: RichTextBox Find Method Pin
Programm3r7-Jan-08 3:22
Programm3r7-Jan-08 3:22 
Hi,

Thanks for the response, but when I try and search for the next word that matches the find it keeps repeating the same line within the RichTextBox. What am I doing wrong?
This is the code I'm trying...
if (this.activeRichEdit.Find(textBox1.Text, 0, activeRichEdit.Text.Length, options) != -1)
{
    int endIndex = this.activeRichEdit.Text.Length;
    int findIndex = this.activeRichEdit.Find(textBox1.Text, 0, endIndex, options);
    this.activeRichEdit.SelectionColor = System.Drawing.Color.DarkRed;
    activeRichEdit.Select(findIndex, 0);
    activeRichEdit.ScrollToCaret();
}




The only programmers that are better that C programmers are those who code in 1's and 0's Green Alien | [Alien]


Smile | :) Programm3r

My Blog: ^_^

GeneralRe: RichTextBox Find Method Pin
Skippums7-Jan-08 3:33
Skippums7-Jan-08 3:33 
GeneralRe: RichTextBox Find Method Pin
Programm3r7-Jan-08 3:39
Programm3r7-Jan-08 3:39 
GeneralRe: RichTextBox Find Method Pin
m@u7-Jan-08 2:50
m@u7-Jan-08 2:50 
QuestionCustomize button Pin
somit taank7-Jan-08 2:13
somit taank7-Jan-08 2:13 
GeneralRe: Customize button Pin
Skippums7-Jan-08 2:33
Skippums7-Jan-08 2:33 
GeneralProject documentation Pin
sami_pak7-Jan-08 2:04
sami_pak7-Jan-08 2:04 
GeneralRe: Project documentation Pin
Skippums7-Jan-08 2:17
Skippums7-Jan-08 2:17 
GeneralRe: Project documentation Pin
Pete O'Hanlon7-Jan-08 3:44
mvePete O'Hanlon7-Jan-08 3:44 
Questionhow can i do this ? Pin
prasadbuddhika7-Jan-08 1:03
prasadbuddhika7-Jan-08 1:03 
AnswerRe: how can i do this ? Pin
Pete O'Hanlon7-Jan-08 1:20
mvePete O'Hanlon7-Jan-08 1:20 
GeneralRe: how can i do this ? Pin
prasadbuddhika7-Jan-08 20:14
prasadbuddhika7-Jan-08 20:14 
GeneralRe: how can i do this ? Pin
Pete O'Hanlon7-Jan-08 21:30
mvePete O'Hanlon7-Jan-08 21:30 
AnswerRe: how can i do this ? Pin
Stu Richardson7-Jan-08 1:28
Stu Richardson7-Jan-08 1:28 
AnswerRe: how can i do this ? Pin
Guffa7-Jan-08 3:01
Guffa7-Jan-08 3:01 
GeneralRe: how can i do this ? Pin
Stu Richardson7-Jan-08 3:46
Stu Richardson7-Jan-08 3:46 
GeneralRe: how can i do this ? Pin
prasadbuddhika7-Jan-08 20:10
prasadbuddhika7-Jan-08 20:10 
GeneralRe: how can i do this ? Pin
Stu Richardson7-Jan-08 22:12
Stu Richardson7-Jan-08 22:12 

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.