Dim b As Integer = 100 Dim i As Integer Dim u As Integer Dim h As Integer Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load While i < 10000 i = i + 1 h = h + 1 Dim pic As New PictureBox If i = b Then u = u + 1 b = b + 100 h = 0 End If pic.BackColor = Color.Red pic.Size = New Size(1, 1) pic.Location = New Point(h, u) Me.Controls.Add(pic) End While End Sub
Error creating window handle.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)