"Ed" <le****@hotmail.com> schrieb
Is it necessary to post to all these groups?
I have 2 forms:
Form1 calls Form2 via a Form2.ShowDialog(me) call. However, after
Form2 appears, I want to set the focus to a specific control, but
I can't.
Why?
Does anyone know how to do this?
Either set the tab order at design time, or use the following code:
Protected Overrides Sub OnActivated( _
ByVal e As System.EventArgs)
Static done As Boolean
MyBase.OnActivated(e)
If Not done Then
done = True
TheControl.Focus()
End If
End Sub
--
Armin