I am trying to find a way to create a vertical progress bar in a VB.NET Windows application. I saw this post, but it's in C# and thus not all that much help to me. Can anyone help?
Thanks!
I am trying to find a way to create a vertical progress bar in a VB.NET Windows application. I saw this post, but it's in C# and thus not all that much help to me. Can anyone help?
Thanks!
Why doesn't the C# answer help you? I ran it through a code converter and it worked straight away:
Public Class VerticalProgressBar
Inherits ProgressBar
Protected Overrides ReadOnly Property CreateParams() As CreateParams
Get
Dim cp As CreateParams = MyBase.CreateParams
cp.Style = cp.Style Or &H4
Return cp
End Get
End Property
End Class
Edit
Although you should really define a public constant for the (PBS_VERTICAL) style value (&H4), rather than using a magic number in code like that.