Hello experts I have a task that runs when my programs main form loads. The task queries our database and dynamically creates panels and adds them to a number of flowlayoutpanel controls. This process can take some time so I want a progress bar to show up while the records are being loaded. I can't quite get the progress bar to function, its like nothing will work until the main task is complete. I am new to visual studio 2008, so am I doing something wrong. In 2003, I could use a timer or a system.thread.timer. Any ideas?
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
tloading.Start() 'Timer that controls the progress bar
record_loading_status = True
build_query() 'This is the main task didnt think i would need to show this procedure
record_loading_status = False
Me.ss_status_text.Text = "Ready!"
ss_progress_bar.Visible = False
Private Sub tloading_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tloading.Tick
If record_loading_status Then
If Me.ss_progress_bar.Value < ss_progress_bar.Maximum Then
ss_progress_bar.Value = 0