Matt Matt - 4 months ago 51 Question

create vertical progress bar in

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?



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
            Dim cp As CreateParams = MyBase.CreateParams
            cp.Style = cp.Style Or &H4
            Return cp
        End Get
    End Property
End Class

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.