Solved

progress bar activeX control

Posted on 2003-12-02
3
1,126 Views
Last Modified: 2009-06-17
How can I use the Microsoft Progress Bar active X in my Form. When I put it in my form how can I activate it, link it to a value and get it work.
0
Comment
Question by:HaryMary
  • 2
3 Comments
 
LVL 49

Accepted Solution

by:
Ryan Chong earned 250 total points
ID: 9864772
Try add the M$ ProgressBar Control from the More Controls button from ToolBox, draw a Progress Bar to your form, named it as progressbar, then draw a command button and named it as Command1, then in the Command1's click event, add the following codes:

Option Compare Database
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Private Sub Command1_Click()
    progressbar.Max = 100
    progressbar.Min = 1
    progressbar.Value = progressbar.Min
   
    For i = 1 To progressbar.Max - progressbar.Min
        progressbar.Value = progressbar.Value + 1
        Sleep 50
        DoEvents
    Next
End Sub

Is that working? cheers
0
 
LVL 1

Author Comment

by:HaryMary
ID: 9864889
Yes It's Ok.  Thanks a lot
Finally, how can I get information about such ActiveX Controls lik (their available properties, methods...etc).
0
 
LVL 49

Expert Comment

by:Ryan Chong
ID: 9864972
Hi,

Thks for the pts.. By the way, to get the info regarding the ActiveX Control, in design view, simply right click the control, select the ProgCtrl Object > Properties to view its Properties, for methods, sorry, you may need to refer it's method from MSDN. Or if you got the Visual Basic, you can see it's method at Object Browser after you add in the Progress bar control.

Hope this helps

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now