Solved

progress bar activeX control

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

929 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

12 Experts available now in Live!

Get 1:1 Help Now