<gwschrieb:
>I need to upgrade from vb6 to dotnet. In vb6 I use
Picture1.cls
How do I upgrade this?
You can use the 'Clear' method of your 'Graphics' object.
\\\
Private m_Clear As Boolean
Public Sub OnPaint(ByVal e As PaintEventArgs)
If m_Clear Then
e.Graphics.Clear(Me.BackColor)
Else
e.Graphics.*
End If
End Sub
Private Sub Clear()
m_Clear = True
Me.Invalidate()
End Sub
Private Sub DrawAgain()
m_Clear = False
Me.Invalidate()
End Sub
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>