Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am searching for a code by which i could get the current mouse position in a Multiline TextBox control from C# code behind.

Basically i have to insert some given text in a Multiline Text box at the position where the mouse cursor presently is.
Posted

1 solution

Look up the SelectionStart property.

HTH
 
Share this answer
 
Comments
Mayur Dhavle 6-Feb-12 2:13am    
How could i get TextBox SelectionStart property in C#
ChandraRam 6-Feb-12 2:16am    
SelectionStart is a property of the text box. Did you look it up?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900