the rich text box has a Lines property, all you need to know is the line number and you can get the entire lines text via that property array. get that line number however you like, via mouse position or whatever you feel.
Sorry guys if I'm not very clear to express my problem it might due to my English, but here's a very clear example of what I'm trying to do.
Sometimes you want to find the definition of a certain instance variable in visual studio you simply right click that instance variable and select go to definition without select the instance variable, then Visual Studio move the cursor to the definition directly that's what I'm trying to do.
Thanks for your sharing, but I couldn't find the source code wit which could run on windows platform only the .msi distribution file, if you have a link of the source code please post it here!!!
if ((pos1 < myRich.Text.Length) && (myRich.Text[pos1].ToString() != "") && (myRich.Text[pos1].ToString() != " "))
//get word from cursor ( from special char to special char)
//1. part - from cursor to end of word
string word = "";
( pos1 >= 0 )
( isNumeric(myRich.Text[pos1].ToString(), System.Globalization.NumberStyles.Integer) || IsInputChar( myRich.Text[pos1] ) )
word = myRich.Text[pos1].ToString() + word;
//2. part - from cursor to begin of word
WordStart = ++pos1;
(pos2 < myRich.Text.Length)
(isNumeric(myRich.Text[pos2].ToString(), System.Globalization.NumberStyles.Integer) || IsInputChar(myRich.Text[pos2]))
(pos2 >= 0)
word = word + myRich.Text[pos2].ToString();
by __avd: Added [code] tags. Encase your code in: [code] and [/code] tags.
I Developed application in C# with crystal reports and created setup file in third party (Advance) Installer.When i installed my application on client system application is working but ...