i don't know, if this is what you are looking for, but i found that piece of vb.net-code on a cd: Private Declare Function GetDC Lib "user32" Alias "GetDC" (ByVal hwnd As Integer) As IntPtr Private Declare Function ReleaseDC Lib "user32" Alias "ReleaseDC" (ByVal hwnd As Integer, ByVal hdc As IntPtr) As Integer Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim blackPen As New Pen(Color.Black, 3) Dim dc As IntPtr Dim g As Graphics Dim rnd As New Random() Dim i As Integer dc = GetDC(0) g = Graphics.FromHdc(dc) For i = 0 To 1000 g.DrawLine(blackPen, rnd.Next(600), rnd.Next(600), rnd.Next(600), rnd.Next(600)) Next g.Dispose() ReleaseDC(0, dc) End Sub click on the button to draw a bunch of lines to the screen, independent of your form. is this of any help?
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)