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

C#

 
QuestionHelp required in c# Pin
MIsahq24-Apr-07 19:29
MIsahq24-Apr-07 19:29 
AnswerRe: Help required in c# Pin
Rocky#24-Apr-07 19:38
Rocky#24-Apr-07 19:38 
GeneralRe: Help required in c# Pin
MIsahq24-Apr-07 20:17
MIsahq24-Apr-07 20:17 
GeneralRe: Help required in c# Pin
Rocky#24-Apr-07 20:53
Rocky#24-Apr-07 20:53 
QuestionHow to set transperency of an image in C# Pin
dudedotnet24-Apr-07 18:11
dudedotnet24-Apr-07 18:11 
QuestionRichTextBox find text Pin
Adobe200724-Apr-07 17:26
Adobe200724-Apr-07 17:26 
AnswerRe: RichTextBox find text Pin
Adobe200724-Apr-07 17:38
Adobe200724-Apr-07 17:38 
GeneralRe: RichTextBox find text Pin
Patrick Etc.24-Apr-07 18:02
Patrick Etc.24-Apr-07 18:02 
I think I get it. You're doing the type of thing where you have your main editor screen, and then a Find dialog pops up over the editor, like the Visual Studio find dialog does.

You want the Find to call back to the editor to highlight the search text.

You're making the call to Find() correctly, but you need a reference to the actual RichTextBox that is your editor.

My suggestion would be to either

a) raise an event from your Find dialog telling the main editor that a search has been requested, and let the editor perform the search; or

b) pass a reference to the RichTextBox into the Find dialog.

Approach b) is the easiest, but approach a) is more in line with OOP principles, and it is more extensible (what if you decide you want to expand the search capabilities.. for everything you add, you'll have to pass new information between the forms, rather than just putting it all into an event).

------------
Cheers,
Patrick

AnswerRe: RichTextBox find text Pin
Adobe200724-Apr-07 18:13
Adobe200724-Apr-07 18:13 
GeneralRe: RichTextBox find text Pin
Arun.Immanuel24-Apr-07 18:34
Arun.Immanuel24-Apr-07 18:34 
GeneralRe: RichTextBox find text Pin
Adobe200724-Apr-07 18:38
Adobe200724-Apr-07 18:38 
GeneralRe: RichTextBox find text Pin
Arun.Immanuel24-Apr-07 18:46
Arun.Immanuel24-Apr-07 18:46 
GeneralRe: RichTextBox find text Pin
Sathesh Sakthivel24-Apr-07 19:00
Sathesh Sakthivel24-Apr-07 19:00 
GeneralRe: RichTextBox find text Pin
Arun.Immanuel24-Apr-07 19:05
Arun.Immanuel24-Apr-07 19:05 
GeneralRe: RichTextBox find text Pin
Adobe200724-Apr-07 19:12
Adobe200724-Apr-07 19:12 
GeneralRe: RichTextBox find text Pin
Sathesh Sakthivel24-Apr-07 19:37
Sathesh Sakthivel24-Apr-07 19:37 
QuestionBindingSource question, help me Pin
phantanagu24-Apr-07 17:06
phantanagu24-Apr-07 17:06 
AnswerRe: BindingSource question, help me Pin
Rocky#24-Apr-07 19:35
Rocky#24-Apr-07 19:35 
QuestionLooking for some regular expressions to match the File/Folder path Pin
xibeifeijian24-Apr-07 16:18
xibeifeijian24-Apr-07 16:18 
AnswerRe: Looking for some regular expressions to match the File/Folder path Pin
Rocky#24-Apr-07 19:44
Rocky#24-Apr-07 19:44 
GeneralRe: Looking for some regular expressions to match the File/Folder path Pin
xibeifeijian24-Apr-07 20:02
xibeifeijian24-Apr-07 20:02 
QuestionError 4 Expected class, delegate, enum, interface, or struct Pin
m0dernist24-Apr-07 16:00
m0dernist24-Apr-07 16:00 
AnswerRe: Error 4 Expected class, delegate, enum, interface, or struct Pin
xibeifeijian24-Apr-07 16:24
xibeifeijian24-Apr-07 16:24 
GeneralRe: Error 4 Expected class, delegate, enum, interface, or struct Pin
Christian Graus24-Apr-07 17:39
protectorChristian Graus24-Apr-07 17:39 
QuestionHow to Clear Contents of a NotePad Textfile Pin
zoroyster24-Apr-07 15:48
zoroyster24-Apr-07 15:48 

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.