shawne
Well-known member
I'm trying to create a progressbar on the fly, but I cannot get it to display on my form. This is in VS2k3/VB.NET. Here is my snippet:
The code is part of a larger function within a module.Dim form1 As New myform
Dim progress As New ProgressBar
progress.Width = 320
progress.Height = 200
progress.Text = "Updateing record..."
progress.Name = "progress"
progress.Location = New Point((form1.Left + form1.Width) / 2, (form1.Top + form1.Height) / 2)
form1.Controls.Add(progress)