Progress Bar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • parshupooja
    New Member
    • Jun 2007
    • 159

    Progress Bar

    Hey All,


    I am working on Vb.Net windows application. I have login Form and where user enters there credentials and then I process something for few Seconds, meanwhile I am displaying simple form named as Wait Form With image in background and Finally I transfer user to Home Form once processing is done. I want to add Progress bar to Wait Form. Once Wait Form is loaded, it should display progress bar.

    I want to add Progress bar working on Page load instead of some one to activate it by clicking button.
    any Idea?
    Thanks,
  • balame2004
    New Member
    • Mar 2008
    • 142

    #2
    Originally posted by parshupooja
    Hey All,


    I am working on Vb.Net windows application. I have login Form and where user enters there credentials and then I process something for few Seconds, meanwhile I am displaying simple form named as Wait Form With image in background and Finally I transfer user to Home Form once processing is done. I want to add Progress bar to Wait Form. Once Wait Form is loaded, it should display progress bar.

    I want to add Progress bar working on Page load instead of some one to activate it by clicking button.
    any Idea?
    Thanks,

    Sure.

    1.Design a wait form with progress bar control(it should be either public or internal)

    2.Create an object for wait form in form load/form constructor,sho w it and increase the progress value in regular process interval/time interval.

    3.Close when no more process.

    Eg:

    Code:
    MainForm()
    
    Me.InitializeComponent();
    Me.Hide();
    Dim frm As New WaitForm
    frm.progressBar1.Increment()
    DoLogin()
    frm.progressBar1.Increment()
    frm.Hide()
    Me.Show()
    
    End Sub
    - Balaji U

    Comment

    • balame2004
      New Member
      • Mar 2008
      • 142

      #3
      Originally posted by balame2004
      Sure.

      1.Design a wait form with progress bar control(it should be either public or internal)

      2.Create an object for wait form in form load/form constructor,sho w it and increase the progress value in regular process interval/time interval.

      3.Close when no more process.

      Eg:

      Code:
      MainForm()
      
      Me.InitializeComponent();
      Me.Hide();
      Dim frm As New WaitForm
      frm.progressBar1.Increment()
      DoLogin()
      frm.progressBar1.Increment()
      frm.Hide()
      Me.Show()
      
      End Sub
      - Balaji U
      Here are some code chnages in the above example.

      Code:
      MainForm()
      
      Me.InitializeComponent();
      Me.Hide();
      Dim frm As New WaitForm
      frm.Show()
      frm.progressBar1.Increment()
      DoLogin()
      frm.progressBar1.Increment()
      frm.Hide()
      Me.Show()
      
      End Sub

      - Balaji U

      Comment

      Working...