Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
What is the code for a single progress bar? I want to have a progressbar on one of the forms i have in my program. Thank you. Also how do i open a .exe file when a button is pushed? Thanks for the help. Email me, IM me, private message me, or just reply to this post if u know wat to do! thanks
  • *Experts*
Posted

What do you mean what is the code? You could do this:

Dim pb As New ProgressBar()

pb.Location = New Point(10, 10)
pb.Size = New Size(300, 15)
pb.Max = 100
pb.Min = 1
Me.Controls(pb)

To add the control manually. I still don't know exactly what you mean though.

BTW, Use Shell under VB6.

Posted
ok what i mean is i have the form. there is only the progress bar on it rite now. the properties have not been changed. What do i do to make the progressbar have the blue things move?
Posted
what i want it to do, is to make it look like it is installing something. have it move like it dose when you instal lets say, aol instant messanger. I dont want it to do anything but look like it is installing something
Posted

what would the code look like?

 

put this under timer1

pb.value=pb.value+10

pb.value=pb.value+10

pb.value=pb.value+10

pb.value=pb.value+10

pb.value=pb.value+10

pb.value=pb.value+10

pb.value=pb.value+10

pb.value=pb.value+10

pb.value=pb.value+10

pb.value=pb.value+10

 

 

Is that wat i do? or not?

  • 5 months later...
Posted

Progressbar

 

Hey guys, sorry to dig up such a old thread, but I am currently trying to incorporate a progress bar into my splash screen of my project. I can get the progress bar to execute fine but I want to slow down the rate of the bars displaying on the progress bar. I'm basically trying to provide the look of user authentication with the progress bar. Any feedback would be appriciated.

 

This is what I'm using for my code

 

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

If (Me.ProgressBar1.Value > 0) Then

Me.ProgressBar1.Value -= 1

 

Else

Me.Timer1.Enabled = False

End If

End Sub

 

Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click

Me.ProgressBar1.Value = 100

 

Me.Timer1.Interval = 1

Me.Timer1.Enabled = True

End Sub

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...