Page 1 of 3

How do I make a custom progress bar?

Posted: Fri Jun 04, 2010 12:36 pm
by lawrence12
Okay so I wanted to make an application with a progress bar, well progress bar is already included but I dont like how it looks, so I made this Topic and I hope you can show me how to make a custom progress bar. wahooo;

Re: How do I make a custom progress bar?

Posted: Fri Jun 04, 2010 12:40 pm
by lawrence12
Im serious, I hate the visual basic progress bar :| .

Re: How do I make a custom progress bar?

Posted: Fri Jun 04, 2010 2:35 pm
by mandai
Posting the same request 3 times will not get you a quicker or better answer.
Code: Select all
    Dim gfx As Graphics
    Dim percent As Integer = 0

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        PictureBox1.BorderStyle = BorderStyle.FixedSingle
        PictureBox1.Image = New Bitmap(PictureBox1.Width, PictureBox1.Height)
        gfx = Graphics.FromImage(PictureBox1.Image)
    End Sub

    Private Sub btnIncrease_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnIncrease.Click
        percent += 10
        gfx.FillRectangle(Brushes.Black, New RectangleF(0, 0, PictureBox1.Width / 100 * percent, PictureBox1.Height))
        PictureBox1.Refresh()
    End Sub

Re: How do I make a custom progress bar?

Posted: Fri Jun 04, 2010 2:59 pm
by lawrence12
Thank you mandai for notifying me that I made 3 topics.
I didn't know that, maybe I was clicking post too much lmao;

Re: How do I make a custom progress bar?

Posted: Fri Jun 04, 2010 3:02 pm
by lawrence12
O_O, Uh picture box?. I thought it was custom progressbar :?

Re: How do I make a custom progress bar?

Posted: Fri Jun 04, 2010 3:03 pm
by lawrence12
A Custom Progress Bar like the custom skin that codie made.

Re: How do I make a custom progress bar?

Posted: Fri Jun 04, 2010 3:10 pm
by zachman61
please dont spam your topic it makes you look unprofessional also mandai's code does indeed work

Re: How do I make a custom progress bar?

Posted: Sat Jun 05, 2010 4:23 am
by lawrence12
zachman61 wrote:
please dont spam your topic it makes you look unprofessional also mandai's code does indeed work
It waz an accident xD

Re: How do I make a custom progress bar?

Posted: Sun Jun 06, 2010 12:17 am
by lawrence12
:|

Re: How do I make a custom progress bar?

Posted: Sun Jun 06, 2010 12:19 am
by lawrence12
:shock: wow you guys must be really busy today.