Click here to Skip to main content
15,892,575 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I create a transparent form & set property of that form is backcolor(White),transparent key(Transparent).
I add a textbox control to that form.

I execute & shown transparent form, but not focus of textbox control.
If i set transparent key is off then it is focus to textbox control.

How will i solve that type of problem?????
Please help me...
Posted
Comments
Sergey Alexandrovich Kryukov 18-Aug-12 2:51am    
Not clear, and I can assure you that the focusing has nothing to do with transparency and cannot be affected by it.
It means that you screw up it somewhere else. You can see it by removing transparency. Try to make some minimal but complete code sample focusing on just one problem. First, chances are, it will help you to resolve the problem by yourself. If not, post the sample using "Improve question" above.
--SA
Ganesh Nikam 20-Aug-12 2:49am    
not clear dude

1 solution

put this code on pageload Event..
VB
Me.Show()
TextBox1.Focus()


it will work..
 
Share this answer
 
v2

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