473,395 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

StatusBar Question

I have added panels to a statusbar control using the .Add Method. I want to
determine how many panels there are in another part of the program. I tried;

'There is no count property exposed so this doesn't work;
mystatusbar.Panels.Count

I tried counting but this gives a runtime error;
dim i as integer
while p as panel in mystatusbar.panels
i=i+1
end while

Does anyone know how to find the no. of panels in the control?
--
Dennis in Houston
Nov 21 '05 #1
1 881
Dennis schrieb:
I have added panels to a statusbar control using the .Add Method. I want to
determine how many panels there are in another part of the program. I tried;

'There is no count property exposed so this doesn't work;
mystatusbar.Panels.Count
Did you try it? IntelliSense doesn't show it, but the
StatusBarPanelCollection has a Count property.
I tried counting but this gives a runtime error;
dim i as integer
while p as panel in mystatusbar.panels
i=i+1
end while


For Each suits better, furthermore it's StatusBarPanel:
Dim i As Integer

For Each p As StatusBarPanel In StatusBar1.Panels
i += 1
Next

Thorsten Doerfler
--
vb-hellfire - einfach anders
http://www.vb-hellfire.de/
Nov 21 '05 #2

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

Similar topics

4
by: Tonya | last post by:
Hi, Does anyone know how i can add controls to a progress bar. I have searched the internet but could not find any examples. what i want to add is a progress bar and a button. thx
1
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...
18
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...
1
by: Ahmet | last post by:
In my application, I have statusbar on which i show icons. On some cases, I have to change icon of my statusbar to show different messages on panels. But I dont know how to change icon of one...
3
by: TonyM | last post by:
Hi all, I have an application with a few different Windows forms. I am trying to update a statusbar panel's text that is in the main form, from another form. When I set the statusbar and the...
9
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...
3
by: Mika Mähönen | last post by:
Hello! I have Windows Form application containing StatusBar (sb below) and also ContextMenu for this StatusBar. StatusBar contains 2 panels, and I want to show ContextMenu only if the...
7
by: Webbee | last post by:
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...
1
by: herve | last post by:
Hi, everybody I'm working with wxPython 2.8.1.1. Does anybody know how to change the foreground colors in a wx.StatusBar
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...
0
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...
0
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,...

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.