Moving a control to the statusbar

G

Guest

What I need is to be able to get the location of a panel on the status bar.
When I was looking to add a progressbar to the statusbar I learned that the
best and maybe only way to do this is by moving the progressbar at run time
and making it fit in one of the panels. Well I found a VUMeter control that I
would like to use in my project but need to be able to grab the location of a
panel then apply that location to the VUMeter. Can someone help me get this
information from a panel? Thank you
 
C

Chris Calzaretta

Why do you not just build a windows custom control put a button and a status
bar on it. create a couple of propertys to update the stats bar. Put an
event to catch the button click.
Simple way to create that control.
 
G

Guest

Would you mind sending me an example of this? I would like to check this out.
(e-mail address removed)
Thanks!
 
G

Guest

I was getting some latebinding errors but it is all good now. I re-worked the
code with a friend of mine and fixed it up nicely :) Thank you
 
C

Chris Dunaway

In answer to your original question, the StatusBar has a Panels
property that exposes the panels.

I didn't the article mentioned above, but to place a control inside the
StatusBar, you only need to set its parent property to the StatusBar
and then set its location and size as necessary. You can also set it's
anchor and dock properties as well.

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top