473,806 Members | 2,346 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Moving a control to the statusbar

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
Nov 21 '05 #1
7 1298
Ok I found this code but when I turn on Option Strict I get lost of errors.
But it looks like a pretty cool class. Maybe someone here can help me tweak
it?
http://www.codeproject.com/vb/net/StatusProgressBar.asp

"Webbee" wrote:
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

Nov 21 '05 #2
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.
"Webbee" <We****@discuss ions.microsoft. com> wrote in message
news:3F******** *************** ***********@mic rosoft.com...
Ok I found this code but when I turn on Option Strict I get lost of
errors.
But it looks like a pretty cool class. Maybe someone here can help me
tweak
it?
http://www.codeproject.com/vb/net/StatusProgressBar.asp

"Webbee" wrote:
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

Nov 21 '05 #3
Would you mind sending me an example of this? I would like to check this out.
ge**@webcraz.co m
Thanks!

"Chris Calzaretta" wrote:
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.
"Webbee" <We****@discuss ions.microsoft. com> wrote in message
news:3F******** *************** ***********@mic rosoft.com...
Ok I found this code but when I turn on Option Strict I get lost of
errors.
But it looks like a pretty cool class. Maybe someone here can help me
tweak
it?
http://www.codeproject.com/vb/net/StatusProgressBar.asp

"Webbee" wrote:
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


Nov 21 '05 #4
What errors are you getting?

Nov 21 '05 #5
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

"Chris Dunaway" wrote:
What errors are you getting?

Nov 21 '05 #6
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

Nov 21 '05 #7
Thank you. Even though this project is done I will use that information else
where.

"Chris Dunaway" wrote:
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

Nov 21 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
7234
by: Dan | last post by:
Using a standard status bar control and the VB browser control I want to be able to display the URL of a link that is hovered over in the browser control. Documentation indicates that the browser control was designed to let you set the StatusBar property to true and then use the StatusText property in the StatusTextChange event to get the URL and display it. But the StatusText property isn't implemented so this does not work. Is there...
3
1439
by: Job Lot | last post by:
I am creating a custom StatusBar control which houses a ProgressBar control. How can I show all the properties of embedded ProgressBar control on design time? I want the property window of StatusBar control, shows all the properties of the progress bar. Thanks
1
3054
by: Michele Locati | last post by:
Hi to everybody I hope this is the right place to post this question. I have a problem I can't solve by myself. Maybe someone here can help me... I need to access the content of a status bar field of a running Windows application (which makes use of wxWidgets). I've just the executable, not the source code of it.
18
2505
by: Andrew Poulos | last post by:
If I manage to call the following bit of javascript in IE and MZ w = window.open("", "s", 'status=no,resizable=no,width=450,height=450'); I get a window that is not resizable and without a statusbar. Yet FF gives me both a statusbar and the window is resizable! Does this mean that FF does not support these "features" or is there a different way to code them for FF?
9
2085
by: Christian Blackburn | last post by:
Hi Gang, I've had this happen with a couple of controls now, but my patience has worn thin. Can somebody tell me why I can read/write to most objects on my form from my module, but not when working with StatusBar.Text? Thanks in Advance, Christian Blackburn My Code: Public Class frmMain
9
1070
by: Kristoffer Arfvidson | last post by:
Does anybody have a link to a control that is free that looks like... You know in xp, you have a kind of a statusbar, but instead of working from one side to another, its, going side to side, like a statusbar that is never ending... You know, like a progressbar but insted it shows that the app is working... < - > < - > < - >
1
1350
by: Fir5tSight | last post by:
Hi, In Visual Studio 2005, I can't find StatusBar control. I'm following instructions from Visual Studio 2002/2003 on how to create a StatusBar control and set up the Panels property for it. Any advice on the equivalent control of StatusBar in VS 2005, and the equivalent property of Panels? Thanks!
3
2341
by: S. Viswanathan | last post by:
Hi everybody! In VB.NET 2005, MenuStrip and Statusstrip controls added. When the mouse over on the Menuitem its corresponding Tooptip text should be displayed in the statusstrip. How to display the statusstrip text while mouseover on the menuitem? -- Thanks
3
3891
by: Steve | last post by:
Hi All I am using VB.net 2008 and use timer controls within my applications Question Does the code in a Timer control.tick event run on a different thread to the main Application thread (UI Thread)? In some of the timers I update some UI controls e.g statusbar.labels and I
0
9597
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10618
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10371
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10110
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9187
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7649
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4329
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.