Click here to Skip to main content
15,887,175 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How do you create a transparent label on a gradient colored form? Pin
The Man from U.N.C.L.E.10-Dec-04 0:57
The Man from U.N.C.L.E.10-Dec-04 0:57 
GeneralRe: How do you create a transparent label on a gradient colored form? Pin
David M J10-Dec-04 22:36
David M J10-Dec-04 22:36 
GeneralCrystal reports"Numbers to words" Pin
anom2m6-Dec-04 0:19
anom2m6-Dec-04 0:19 
GeneralUrgent: Killing Threads Pin
cwayman5-Dec-04 23:02
cwayman5-Dec-04 23:02 
GeneralHook Messages or ... Pin
rdges5-Dec-04 21:50
rdges5-Dec-04 21:50 
GeneralRe: Hook Messages or ... Pin
Dave Kreskowiak6-Dec-04 4:07
mveDave Kreskowiak6-Dec-04 4:07 
GeneralProgress Bar Pin
nitin_ion5-Dec-04 18:59
nitin_ion5-Dec-04 18:59 
GeneralRe: Progress Bar Pin
Tom John7-Dec-04 5:37
Tom John7-Dec-04 5:37 
nitin_ten wrote:
How can i place Progress bar in status-bar panel

Public Class Form1

    Dim progressBar As New ProgressBar
    Dim progressPanel As New StatusBarPanel
    Dim textPanel As New StatusBarPanel

    Public Sub New()

        MyBase.New()
        InitializeComponent()

        Dim statusBar As New StatusBar
        statusBar.Parent = Me
        statusBar.ShowPanels = True

        textPanel.AutoSize = StatusBarPanelAutoSize.Spring
        textPanel.Text = "Panel 1 Text"
        statusBar.Panels.Add(textPanel)

        progressPanel.Width = 120
        statusBar.Panels.Add(progressPanel)

        progressBar.Value = 50
        progressBar.Height = statusBar.Height - 2
        progressBar.Width = progressPanel.Width - 6
        progressBar.Parent = statusBar
        progressBar.Width = progressPanel.Width
        progressBar.Location = New Point(textPanel.Width + 2, 2)
    End Sub

    Protected Overrides Sub OnResize(ByVal e As EventArgs)
        MyBase.OnResize(e)
        progressBar.Location = New Point(textPanel.Width + 2, 2)
    End Sub

End Class


Hope this helps

Tom
GeneralDifference between DHTML and Web Controls Pin
iamalik5-Dec-04 18:27
professionaliamalik5-Dec-04 18:27 
GeneralRe: Difference between DHTML and Web Controls Pin
Dave Kreskowiak6-Dec-04 4:01
mveDave Kreskowiak6-Dec-04 4:01 
GeneralDisplay report base on value from list view Pin
Mekong River5-Dec-04 15:19
Mekong River5-Dec-04 15:19 
GeneralHelp please.... Pin
simiyah5-Dec-04 10:26
simiyah5-Dec-04 10:26 
GeneralRe: Help please.... Pin
Pablo.ar5-Dec-04 15:25
Pablo.ar5-Dec-04 15:25 
GeneralRe: Help please.... Pin
Pablo.ar7-Dec-04 0:36
Pablo.ar7-Dec-04 0:36 
GeneralProtecting executable files Pin
matrixcine5-Dec-04 7:28
matrixcine5-Dec-04 7:28 
GeneralRe: Protecting executable files Pin
Dave Kreskowiak6-Dec-04 3:41
mveDave Kreskowiak6-Dec-04 3:41 
GeneralRunning executables from VB Pin
Programmer_Chris5-Dec-04 5:29
Programmer_Chris5-Dec-04 5:29 
GeneralRe: Running executables from VB Pin
jlawren75-Dec-04 6:23
jlawren75-Dec-04 6:23 
GeneralRe: Running executables from VB Pin
Member 15546336-Dec-04 13:24
Member 15546336-Dec-04 13:24 
GeneralRe: Running executables from VB Pin
Dave Kreskowiak6-Dec-04 3:56
mveDave Kreskowiak6-Dec-04 3:56 
GeneralRe: Running executables from VB Pin
Programmer_Chris6-Dec-04 6:29
Programmer_Chris6-Dec-04 6:29 
GeneralRe: Running executables from VB Pin
Dave Kreskowiak6-Dec-04 7:34
mveDave Kreskowiak6-Dec-04 7:34 
GeneralRe: Running executables from VB Pin
Programmer_Chris6-Dec-04 7:52
Programmer_Chris6-Dec-04 7:52 
General2 Questions in VB6 Code Pin
jlawren75-Dec-04 4:40
jlawren75-Dec-04 4:40 
GeneralRuntime Error 430 Pin
sathiyaram5-Dec-04 1:30
sathiyaram5-Dec-04 1:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.