Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 1 out of 4 pages
Lecture notes

Object Oriented Programming Progress Bar Guide

Document preview thumbnail
Preview 1 out of 4 pages

This document contains a guide on how to create a Progress Bar in preparation for the assignment task.

Content preview

Unit 15



Making a vertical Progressbar
Using a Class [and overrides]
1. Open a new project
2. Add a class, call it MyVerticalProgressbar
3. Add the following code...

Imports System
Imports System.Windows.Forms

Public Class MyVerticalProgressbar
Inherits ProgressBar
Protected Overrides ReadOnly Property CreateParams() _
As System.Windows.Forms.CreateParams
Get
Dim cp As CreateParams = MyBase.CreateParams
cp.Style = cp.Style Or &H4
Return cp
End Get
End Property
End Class


4. Save and run your project in debug mode, this will cause the control to appear in the
toolbox.




5. Go back to the form1.vb [design] view, click on the new
control [ie class] and drag it in place from the toolbox.
6. Position and size the control to your preference, then add
buttons or timers to fill and empty it.
7. Save and Run you project.




Resources used:
http://www.youtube.com/watch?v=0Z_3CgWRMEE

Document information

Study Level
Uploaded on
July 10, 2022
Number of pages
4
Written in
2018/2019
Type
Lecture notes
Professor(s)
N/a
Contains
All classes
Free
Download

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
ItsKenzie
5.0
(9)
Sold
20
Followers
10
Items
78
Last sold
3 year ago

Reviews from verified buyers



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions