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

In MDI Form, the Child Form open with in Panel.

In Child Form, cursor not focusing in middle of the text in textbox.

Example :

MDIFORM ==> PANEL ==> CHILD FORM ==> TEXTBOX.


Regards
Rajesh V
Posted
Updated 1-Mar-13 23:26pm
v2
Comments
Karthik Harve 2-Mar-13 8:04am    
your question is not clear. better show us some code or re phrase your question.
Johnny J. 16-Jul-13 6:08am    
Is Tabstop set to true?

In the Child Form Load event, to put the cursor in a textbox, execute the following method:

textbox1.Focus()
 
Share this answer
 
v2
childformName.Textbox.focus() in MdiForm
 
Share this answer
 
You can set tab ordering on the particular page for default focus on particular control
or may follow the following methodlogy...


VB
Me.Show()
   Application.DoEvents()
   TextBox1.Focus()
 
Share this answer
 

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