I want to paint some lines and fonts on a panel, but I want it to paint when I click on a menuitem, have tried the code below, but it paints when I open the form. I dont want it to paint untill I call the sub with my MenuItem3.click.
Private Sub Panel1_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Panel1.Paint
here is the code for lines and fonts
end sub
Private Sub MenuItem3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem3.Click
Panel1_Paint() calling the sub to paint the panel
End Sub
have heard you can use a sub "panel1.refresh()" or something like that, but I dont know how it works.
someone have an example code or can explain for me?? please!
thanks!
Private Sub Panel1_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Panel1.Paint
here is the code for lines and fonts
end sub
Private Sub MenuItem3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem3.Click
Panel1_Paint() calling the sub to paint the panel
End Sub
have heard you can use a sub "panel1.refresh()" or something like that, but I dont know how it works.
someone have an example code or can explain for me?? please!
thanks!