Click here to Skip to main content
16,012,110 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
Hi,
How to display the cursor in textbox during run time.

Regards
Balamurugan
Posted
Comments
phil.o 24-Oct-13 8:03am    
You should rephrase (improve) your question, because as it is I guess noone is having a clue about what you are trying to do.
Cursor automatically appears in a TextBox when you click on it (when it receives the focus).
Maybe try myTextBox.SetFocus();?
Balamurugan1989 24-Oct-13 8:08am    
Without clicking the cursor should blink. and i got the solution pl see my solution.
phil.o 24-Oct-13 8:13am    
Without clicking, and you put your code in the handler of click event?
I definitely do not understand what your are trying to do, sorry :)
Balamurugan1989 24-Oct-13 8:17am    
Actually during run time if we r clicking the text box it will blink otherwise it won't but my requirement is to blink without clicking.
Balamurugan1989 24-Oct-13 8:18am    
pl see my updated solution.

Inside the load event or textbox event we need to write the code.
Textbox1.focus();
keyboard.focus(textbox1);
 
Share this answer
 
v2
you can write the "pointer" property CSS class for that textbox and apply to that class to that textbox
 
Share this answer
 
v2
Comments
Balamurugan1989 24-Oct-13 8:03am    
I'm working in WPf and C#. its not possible der...

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