English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

what is the method used to to repaint a form
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Dim g As Graphics = Me.CreateGraphics()
g.DrawLine(Pens.Black, 5, 5, 50, 50)



End Sub

2007-02-24 23:25:16 · 1 answers · asked by Rami 5 in Computers & Internet Programming & Design

1 answers

Form1.Invalidate

This invalidates the entire form and forces a repaint

2007-02-25 00:24:54 · answer #1 · answered by MarkG 7 · 0 0

fedest.com, questions and answers