Private Sub イヨ(sender As Object, e As PaintEventArgs) Handles PictureBox1.Paint End Sub Private Sub TextBox1_Changed(sender As Object, e As PaintEventArgs) Handles PictureBox1.Paint End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click TrackBar1.Value += 10 End Sub
'縦線 For x = TrackBar1.Value To 600 - 1 Step 60 e.Graphics.DrawLine(Pens.Gray, x, 0, x, 400) Next '横線 For y = TrackBar1.Value To 399 Step 40 e.Graphics.DrawLine(Pens.Gray, 0, y, 600, y) Next