How do I make a custom progress bar?
Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Hello lawrence12,
I thought mandai gave a very good answer to your question: viewtopic.php?f=32&t=2219#p13892
Unless you need help doing something else?
I thought mandai gave a very good answer to your question: viewtopic.php?f=32&t=2219#p13892
Unless you need help doing something else?
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
but where do I put that code in?
The Post you posted included a code in it but no instructions, meaning no details or stuff, so I didn't learn anything :|
The Post you posted included a code in it but no instructions, meaning no details or stuff, so I didn't learn anything :|
:( And I got a NullReferenceException was unhandled error.
How cool was that?, the post didn't help at all.
How cool was that?, the post didn't help at all.
Hello,
You need to add a Button control and PictureBox control to your form and then use the code like:
Add under "Public Class Form":
Download:
You need to add a Button control and PictureBox control to your form and then use the code like:
Add under "Public Class Form":
Code: Select all
Inside the "Form_Load" event:Dim gfx As Graphics
Dim percent As Integer = 0
Code: Select all
Inside the "Button_Click" event: PictureBox1.BorderStyle = BorderStyle.FixedSingle
PictureBox1.Image = New Bitmap(PictureBox1.Width, PictureBox1.Height)
gfx = Graphics.FromImage(PictureBox1.Image)
Code: Select all
Ive added it into the project below to demonstrate mandai code. percent += 10
gfx.FillRectangle(Brushes.Black, New RectangleF(0, 0, PictureBox1.Width / 100 * percent, PictureBox1.Height))
PictureBox1.Refresh()
Download:
You do not have the required permissions to view the files attached to this post.
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
lawrence12 wrote:but where do I put that code in?You put the code in your Form1.vb file.
The Post you posted included a code in it but no instructions, meaning no details or stuff, so I didn't learn anything :|
You diddn't ask for detail in your request (in fact you diddn't even explain how it should be custom). If you know what the types and functions are for then it should be easy to understand.
mandai wrote:Oh Im sorry but Im not that advanced yet.lawrence12 wrote:but where do I put that code in?You put the code in your Form1.vb file.
The Post you posted included a code in it but no instructions, meaning no details or stuff, so I didn't learn anything :|
You diddn't ask for detail in your request (in fact you diddn't even explain how it should be custom). If you know what the types and functions are for then it should be easy to understand.
CodenStuff wrote:Hello,Well I was looking for a stylish one :|
You need to add a Button control and PictureBox control to your form and then use the code like:
Add under "Public Class Form":
Code: Select allInside the "Form_Load" event:Dim gfx As Graphics Dim percent As Integer = 0
Code: Select allInside the "Button_Click" event:PictureBox1.BorderStyle = BorderStyle.FixedSingle PictureBox1.Image = New Bitmap(PictureBox1.Width, PictureBox1.Height) gfx = Graphics.FromImage(PictureBox1.Image)
Code: Select allIve added it into the project below to demonstrate mandai code.percent += 10 gfx.FillRectangle(Brushes.Black, New RectangleF(0, 0, PictureBox1.Width / 100 * percent, PictureBox1.Height)) PictureBox1.Refresh()
Download:
Copyright Information
Copyright © Codenstuff.com 2020 - 2023