I'm trying to use a progressbar one one form to change the text on another form's labels and change the image in the form's picturebox. Here's an example of what I have:
Yet the form won't repaint anything when I run the program. Any ideas how to fix this? I've already triedCode:Dim h As String = wizardscreen9.Label1.Text Dim msg As String = wizardscreen9.Label2.Text Dim pic As Image = wizardscreen9.PictureBox1.BackgroundImage Dim easiertouse As String = My.Resources.easiertouse1 Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick ProgressBar1.Increment(1) If ProgressBar1.Value = 10 Then h = "Easier to use" pic = My.Resources.easiertouse msg = easiertouse End If End Sub
andCode:wizardscreen9.invalidate
.Code:application.doevents
NEVER works.Code:wizardscreen9.refresh
So I have no idea what to do. Any ideas please??


Reply With Quote
