Hi all,
I have problem and I don't now if I can do following in C#
In text box the user will enter text when he click mouse in specific word I wont to take it to my program To handle it .
Please give me some tip,
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pravin GhadgePosted Dec 11, 2011, 3:28 AM
For Eg:
private void txt1_MouseCaptureChanged(object sender, EventArgs e)
{
string s = txt1.SelectedText;
}
huda omarPosted Dec 11, 2011, 4:08 AM
huda omarPosted Dec 11, 2011, 3:24 AM
but the problem not in event but in how I get the word from the hole text in text Box
Pravin GhadgePosted Dec 11, 2011, 3:19 AM
Welcome to C# corner.
u can use MouseCaptureChanged event to achieve ur goal