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
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