gchq
Well-known member
- Joined
- Dec 14, 2007
- Messages
- 168
- Programming Experience
- 10+
Hi there
I have the following sub that displays the progress (the Animation speed is 50 - but I've tried with other values)
and this when it completes
In XP it shows 4 blocks, then stops - in Win 7 it just plain doesn't work.
Application.RenderWithVisualStyles is set to true (and tested)
I should mention that the control is created dynamically and placed on a dynamically created TabPage that in turn is added to the main tab control that is on the static form (Form1) that is refreshed - but I do believe that 'Refresh' should ripple though to all sub controls?
Any ideas?
Thanks
I have the following sub that displays the progress (the Animation speed is 50 - but I've tried with other values)
VB.NET:
Public Sub MainTabsLoad(ByVal Message As String)
TabsStatuslabel.Text = Message
TabsProgressBar.Style = ProgressBarStyle.Marquee
TabsProgressBar.MarqueeAnimationSpeed = My.Settings.MarqueeAnimSpeed
Form1.Cursor = Cursors.WaitCursor
Form1.Refresh()
End Sub
and this when it completes
VB.NET:
Public Sub MainTabsLoaded(ByVal Message As String)
TabsStatuslabel.Text = Message
TabsProgressBar.Style = ProgressBarStyle.Blocks
TabsProgressBar.Maximum = 1
TabsProgressBar.Value = TabsProgressBar.Minimum
Form1.Cursor = Cursors.Default
Form1.Refresh()
End Sub
In XP it shows 4 blocks, then stops - in Win 7 it just plain doesn't work.
Application.RenderWithVisualStyles is set to true (and tested)
I should mention that the control is created dynamically and placed on a dynamically created TabPage that in turn is added to the main tab control that is on the static form (Form1) that is refreshed - but I do believe that 'Refresh' should ripple though to all sub controls?
Any ideas?
Thanks