Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
Hi,

Actually i have one text box where are some rendom number like : 1204789965478852

i want when i click on any where it should show me total left side digit or should tell me at which position is clicked;

Example:

120478|9965478852 - if i click on near 8 it should tell me (6 position or 6 character found)

something like
                             please suggest

USING WINDOWS APPLICATION IN C# 4.0
Posted
Comments
Harley L. Pebley 15-Jul-14 21:57pm    
What UI technology are you using? WinForms? WPF? Something else?
SDAP_INDIA 15-Jul-14 23:08pm    
Hello,

I am Using Win Form in C# 4.0 Version

Probably this should you give the count.

textbox.SelectionStart+1;
 
Share this answer
 
Its Done by selectionstart

thanks to all
 
Share this answer
 
Comments
ArunRajendra 16-Jul-14 0:13am    
If my post had helped you then mark it as answered.

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