Pirahnaplant
Well-known member
- Joined
- Mar 29, 2009
- Messages
- 75
- Programming Experience
- 3-5
I need for my control to paint on the its parent form. This is the code I have been trying, but the paint event never gets activated.
VB.NET:
Private WithEvents contForm As Form = Me.ParentForm
Private Sub contForm_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles contForm.Paint
'code goes here
End Sub