Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

progress bar activeX control

Posted on 2003-12-02
3
1,149 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 50

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 50

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

839 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