Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to return to application during OnClosing event? Pin
Christian Graus4-May-08 19:01
protectorChristian Graus4-May-08 19:01 
GeneralRe: How to return to application during OnClosing event? Pin
cocoonwls4-May-08 19:37
cocoonwls4-May-08 19:37 
GeneralRe: How to return to application during OnClosing event? Pin
S. Senthil Kumar5-May-08 4:47
S. Senthil Kumar5-May-08 4:47 
GeneralOT Pin
Vikram A Punathambekar5-May-08 5:03
Vikram A Punathambekar5-May-08 5:03 
GeneralRe: OT Pin
S. Senthil Kumar5-May-08 5:36
S. Senthil Kumar5-May-08 5:36 
AnswerRe: How to return to application during OnClosing event? Pin
Anindya Chatterjee4-May-08 22:26
Anindya Chatterjee4-May-08 22:26 
QuestionRichtextbox goto functionality Pin
kamalesh57434-May-08 15:11
kamalesh57434-May-08 15:11 
AnswerRe: Richtextbox goto functionality Pin
John_Adams4-May-08 19:30
John_Adams4-May-08 19:30 
Hi Kamlesh,

Please try the following code snippet and see if this helps. The following code shows how to use one of the overloaded versions of Find.

-------------------------------------------------------------------------
BEGIN CODE

public int FindMyText(string searchText, int searchStart, int searchEnd)
{
// Initialize the return value to false by default.
int returnValue = -1;

// Ensure that a search string and a valid starting point are specified.
if (searchText.Length > 0 && searchStart >= 0)
{
// Ensure that a valid ending value is provided.
if (searchEnd > searchStart || searchEnd == -1)
{
// Obtain the location of the search string in richTextBox1.
int indexToText = richTextBox1.Find(searchText, searchStart, searchEnd, RichTextBoxFinds.MatchCase);
// Determine whether the text was found in richTextBox1.
if(indexToText >= 0)
{
// Return the index to the specified search text.
returnValue = indexToText;
}
}
}

return returnValue;
}
-------------------------------------------------------------------------
END CODE

Hope this helps.

Regards,
John Adams
ComponentOne LLC

QuestionSystem.OutOfMemory Exception Pin
KarlWF4-May-08 14:47
KarlWF4-May-08 14:47 
AnswerRe: System.OutOfMemory Exception Pin
Christian Graus4-May-08 14:56
protectorChristian Graus4-May-08 14:56 
GeneralRe: System.OutOfMemory Exception Pin
tgrt4-May-08 16:06
tgrt4-May-08 16:06 
AnswerRe: System.OutOfMemory Exception Pin
KarlWF4-May-08 16:30
KarlWF4-May-08 16:30 
GeneralRe: System.OutOfMemory Exception Pin
KarlWF4-May-08 16:54
KarlWF4-May-08 16:54 
GeneralRe: System.OutOfMemory Exception Pin
Christian Graus4-May-08 17:01
protectorChristian Graus4-May-08 17:01 
GeneralRe: System.OutOfMemory Exception Pin
KarlWF4-May-08 17:13
KarlWF4-May-08 17:13 
GeneralRe: System.OutOfMemory Exception Pin
KarlWF4-May-08 17:23
KarlWF4-May-08 17:23 
GeneralRe: System.OutOfMemory Exception Pin
Christian Graus4-May-08 17:30
protectorChristian Graus4-May-08 17:30 
GeneralRe: System.OutOfMemory Exception Pin
KarlWF4-May-08 17:40
KarlWF4-May-08 17:40 
GeneralRe: System.OutOfMemory Exception Pin
Christian Graus4-May-08 19:09
protectorChristian Graus4-May-08 19:09 
GeneralRe: System.OutOfMemory Exception Pin
Luc Pattyn4-May-08 23:25
sitebuilderLuc Pattyn4-May-08 23:25 
QuestionHow to connect and disconnect internet ,via an internet gatewaye connection using C# Pin
pejman4-May-08 12:55
pejman4-May-08 12:55 
QuestionWindows Context Menu Problem Pin
Arthur Hylton4-May-08 12:07
Arthur Hylton4-May-08 12:07 
AnswerRe: Windows Context Menu Problem Pin
Christian Graus4-May-08 12:21
protectorChristian Graus4-May-08 12:21 
AnswerRe: Windows Context Menu Problem Pin
Luc Pattyn4-May-08 12:27
sitebuilderLuc Pattyn4-May-08 12:27 
Question[Message Deleted] [modified] Pin
Lord President4-May-08 10:06
Lord President4-May-08 10:06 

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.