I'm trying to style my progress bars, i have tried both of the following:
Suggestion 1 (automatically created by VB)
With MetroProgressBar1
.Style = CType(ProgressBarStyle.Blocks, MetroFramework.MetroColorStyle)
.Visible = True
.Value = CInt(e.CurrentFileCopyProgress)
.Refresh()
End With
Suggestion 2 (how i imagine it should be)
With MetroProgressBar1
.Style = MetroFramework.MetroColorStyle.Red
.MetroProgressBarStyle = MetroProgressBarStyle.Blocks
.Visible = True
.Value = CInt(e.CurrentFileCopyProgress)
.Refresh()
End With
But when ever i use option 2, the program breaks and it reverts back to Suggestion 1's code.
Here is my original code which works flawlessly but with a normal ProgressBar not Metro Themed.
With ProgressBar1
.Style = ProgressBarStyle.Blocks
.Visible = True
.Value = CInt(e.CurrentFileCopyProgress)
.Refresh()
End With
Hello,
I'm trying to style my progress bars, i have tried both of the following:
Suggestion 1 (automatically created by VB)
With MetroProgressBar1 .Style = CType(ProgressBarStyle.Blocks, MetroFramework.MetroColorStyle) .Visible = True .Value = CInt(e.CurrentFileCopyProgress) .Refresh() End With
Suggestion 2 (how i imagine it should be)
With MetroProgressBar1 .Style = MetroFramework.MetroColorStyle.Red .MetroProgressBarStyle = MetroProgressBarStyle.Blocks .Visible = True .Value = CInt(e.CurrentFileCopyProgress) .Refresh() End With
But when ever i use option 2, the program breaks and it reverts back to Suggestion 1's code.
Here is my original code which works flawlessly but with a normal ProgressBar not Metro Themed.
With ProgressBar1 .Style = ProgressBarStyle.Blocks .Visible = True .Value = CInt(e.CurrentFileCopyProgress) .Refresh() End With
Any help?