|
Option Explicit
Private Sub Command1_Click()
Call AlleControlCaptions(Command1)
End Sub
Private Sub Command2_Click()
Call AlleControlCaptions(Command2)
End Sub
Private Sub Command3_Click()
Call AlleControlCaptions(Command3)
End Sub
Private Sub Form_Load()
Call AlleFormCaptions(Form1)
End Sub
Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, _
X As Single, Y As Single)
Call Mouse_Move_Im_Label1(Label1, Button, Shift, X, Y, Label2)
End Sub
Private Sub Text1_Change()
Call CopyTextBox(Form1)
End Sub
Option Explicit
Public Sub AlleControlCaptions(C As Control)
If C.Caption = "Hier klicken" Then
C.Caption = "Ich war im Modul"
Else
C.Caption = "Hier klicken"
End If
End Sub
Public Sub AlleFormCaptions(F As Form)
F.Caption = "Dieser Titel wurde im Modul eingefügt"
End Sub
Public Sub CopyTextBox(F As Form)
F.Text2.Text = F.Text1.Text
End Sub
Public Sub Mouse_Move_Im_Label1(L1 As Label, Button As _
Integer, Shift As Integer, _
X As Single, Y As Single, _
L2 As Label)
L2.Caption = "Mausposition X=" & X & " Y=" & Y
End Sub
|