Zexor
Well-known member
- Joined
- Nov 28, 2008
- Messages
- 520
- Programming Experience
- 3-5
I have a program with 2 forms where form1 would have a line form2.show() and in form2 would have a form size change line. but for some reason the paint codes doesnt fire after the size change. I have no idea why.
all the buttons that is inside form2 get painted, just not the form paint event. right now i set a timer in the load event for the size change. the form paint event would fire when the size change isnt in the load.
do you know why?
all the buttons that is inside form2 get painted, just not the form paint event. right now i set a timer in the load event for the size change. the form paint event would fire when the size change isnt in the load.
do you know why?
VB.NET:
Private Sub Form2_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
'Paint Codes
End Sub
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Size = New Point(270, 25)
End Sub