Sv: Markerad?
Hej
Kan angripas enl denna princip
Private Sub Form_Click()
If TypeOf Form1.ActiveControl Is TextBox Then
If Form1.ActiveControl.Name = Text1 Then
MsgBox "Text1 har focus"
Else
MsgBox "Text1 har ej focus"
End If
End If
End Sub
Sven
Svara
Sv: Markerad?
Borde man inte kunna skriva(Kan inte testa just nu):
<code>
Private Sub Form_Click()
If Me.ActiveControl Is Text1 Then
MsgBox "Text1 har focus"
Else
MsgBox "Text1 har ej focus"
End If
End Sub
</code>
Svara
Sv: Markerad?
Hej
Jooooo det funkar, Mitt exempel är nog mer till när
man skall loop :a genom alla kontroller.
DS
Svara