Davi,
probeer dit eens ;
Private Declare Function GetForegroundWindow Lib "user32" () As LongPrivate Declare Function Ellipse Lib "gdi32" (ByVal hdc As Long, ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As LongPrivate Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
Private Sub Command1_Click() Load Form2 Form2.ShowEnd Sub
Private Sub Form_Activate() 'KPD-Team 1998 'URL:
http://www.allapi.ne...et/????'E-Mail: KPDTeam@Allapi.net Dim Ret As Long Do 'Get the handle of the foreground window Ret = GetForegroundWindow() 'Get the foreground window's device context Ret = GetDC(Ret) 'draw an ellipse Ellipse Ret, 0, 0, 200, 200 DoEvents LoopEnd Sub