focus

J

Jerry

Hi again,

trying to to select a node brought me upon another thought to make my app
neater.

When a node is selected, it has the focus. In my app the node opens a
usercontrol with many inputs. I thought it would be nice if upon selecting a
node a usercontol opens and the first input has the focus. The usercontrol
opens but I can't get the focus on the first textbox. I got all the
properties right and debugging shows me that the textbox had the focus. But
for what ever reason the node keeps the focus. What did I not see?

Thanks,

Jerry

Property FocusMi() As Boolean

Get

Return stFocusMi

End Get

Set(ByVal Value As Boolean)

Me.Opt_Mi.Focus()

MsgBox("Focused")

End Set

End Property



Me.UserControl1.FocusMi= True
 
J

Jerry

Hello,

I just noticed that when I use the arrowkeys it works. It does not work when
clicking it. Howcome?

Jerry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top