473,804 Members | 3,081 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

adding controls to a statusBar

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
Jul 21 '05 #1
4 2386
This seems to be possible:

From the documentation for the StatusBarPanel:
Although the StatusBar control is typically used to display textual
information, you can also provide your own type of display to a
StatusBarPanel. The Style property enables you to specify how the
StatusBarPanel will be drawn. By default, the Style property is used to
display the value of the Text property (and an icon if specified in the Icon
property). If the property is set to StatusBarPanelS tyle.OwnerDraw, you can
draw your own information into the panel. You can use this feature to draw a
progress bar or an animated icon in the panel.

When you are adding the status bar, you are actually adding it to the
container of the StatusBarPanel, which is the StatusBar. Your best bet
would be to draw the control yourself on the StatusBarPanel when the
DrawItem event on the StatusBar is fired.

SOURCE:
http://groups.google.com/groups?q=st...phx.gbl&rnum=5

--
Greetz,
Jan
_______________ _______________ ____
Read my weblog: http://weblogs.asp.net/jan
"Tonya" <an*******@disc ussions.microso ft.com> schreef in bericht
news:03******** *************** *****@phx.gbl.. .
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

Jul 21 '05 #2
Hi Jan,

I found a document that gives a brief outline as to the
procedure to use to carry out this task. However it does
not give me any guidence on how to go about coding it.
can anyone help me on this.

this is what the document said.....
"You cannot place controls into a StatusBar control in the
designer. However, you can add any no. of Controls to the
StatusBar programatically through it's Controls property.
After adding the Controls, set their Visible, Location and
Bounds property appropriately. "

source:
http://www.syncfusion.com/faq/winforms/search/894.asp

thx

-----Original Message-----
This seems to be possible:

From the documentation for the StatusBarPanel:
Although the StatusBar control is typically used to display textualinformation, you can also provide your own type of display to aStatusBarPanel . The Style property enables you to specify how theStatusBarPan el will be drawn. By default, the Style property is used todisplay the value of the Text property (and an icon if specified in the Iconproperty). If the property is set to StatusBarPanelS tyle.OwnerDraw, you candraw your own information into the panel. You can use this feature to draw aprogress bar or an animated icon in the panel.

When you are adding the status bar, you are actually adding it to thecontainer of the StatusBarPanel, which is the StatusBar. Your best betwould be to draw the control yourself on the StatusBarPanel when theDrawItem event on the StatusBar is fired.

SOURCE:
http://groups.google.com/groups?q=statusbar+C% 23+button&hl=en &lr=&ie=UTF-8&oe=UTF-
8&selm=eWlc56x4 CHA.1868%40TK2M SFTNGP12.phx.gb l&rnum=5
--
Greetz,
Jan
______________ _______________ _____
Read my weblog: http://weblogs.asp.net/jan
"Tonya" <an*******@disc ussions.microso ft.com> schreef in berichtnews:03******* *************** ******@phx.gbl. ..
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

.

Jul 21 '05 #3
That would be something like this:

Dim tb As New Textbox
tb.Text = "Testing"
Statusbar1.Cont rols.Add(tb)
tb.Visible=True

--
Greetz

Jan Tielens
_______________ _______________ __
Read my weblog: http://weblogs.asp.net/jan
"Tonya" <an*******@disc ussions.microso ft.com> wrote in message
news:00******** *************** *****@phx.gbl.. .
Hi Jan,

I found a document that gives a brief outline as to the
procedure to use to carry out this task. However it does
not give me any guidence on how to go about coding it.
can anyone help me on this.

this is what the document said.....
"You cannot place controls into a StatusBar control in the
designer. However, you can add any no. of Controls to the
StatusBar programatically through it's Controls property.
After adding the Controls, set their Visible, Location and
Bounds property appropriately. "

source:
http://www.syncfusion.com/faq/winforms/search/894.asp

thx

-----Original Message-----
This seems to be possible:

From the documentation for the StatusBarPanel:
Although the StatusBar control is typically used to

display textual
information, you can also provide your own type of

display to a
StatusBarPanel . The Style property enables you to specify

how the
StatusBarPan el will be drawn. By default, the Style

property is used to
display the value of the Text property (and an icon if

specified in the Icon
property). If the property is set to

StatusBarPanelS tyle.OwnerDraw, you can
draw your own information into the panel. You can use

this feature to draw a
progress bar or an animated icon in the panel.

When you are adding the status bar, you are actually

adding it to the
container of the StatusBarPanel, which is the StatusBar.

Your best bet
would be to draw the control yourself on the

StatusBarPanel when the
DrawItem event on the StatusBar is fired.

SOURCE:
http://groups.google.com/groups?q=statusbar+C%

23+button&hl=en &lr=&ie=UTF-8&oe=UTF-
8&selm=eWlc56x4 CHA.1868%40TK2M SFTNGP12.phx.gb l&rnum=5

--
Greetz,
Jan
______________ _______________ _____
Read my weblog: http://weblogs.asp.net/jan
"Tonya" <an*******@disc ussions.microso ft.com> schreef in

bericht
news:03******* *************** ******@phx.gbl. ..
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

.

Jul 21 '05 #4
On Tue, 16 Dec 2003 08:01:05 +0100, Jan Tielens wrote:
That would be something like this:

Dim tb As New Textbox
tb.Text = "Testing"
Statusbar1.Cont rols.Add(tb)
tb.Visible=True


Be sure to set the location property of the TextBox. The location is set
relative to the upper left corner of the StatusBar.
--
Chris

To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
address.
Jul 21 '05 #5

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

Similar topics

18
2504
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?
1
2570
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 panel of statusbar on runtime. Any help ?
3
3652
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 statusbar panels to public and shared in VS.net's property box it will work. However, whenever I make any modifications to the main form it will remove the shared property and I will get build errors about accessing the panels with "this.".
3
4889
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that the best method? Do you have a sample of how to do this?
6
1536
by: Anony | last post by:
Hi All, I have two icons: Private micoIcon1 As New System.Drawing.Icon(System.IO.Path.Combine(Application.StartupPath, "Icon1.ico")) Private micoIcon2 As New System.Drawing.Icon(System.IO.Path.Combine(Application.StartupPath, "Icon2.ico"))
2
1095
by: GrandpaB | last post by:
HI, I am attempting to write to the StatusBar on MyForm from within a class that I wrote. In the following code, VB does not like 'MyForm.StatusBar1.' VB states, ' Reference to a non-shared member requires an object reference.' Can you explain what VB is telling me and how can I resolve this problem. I'm relatively new to OOP and .NET. Thanks. Private Sub StatusUpdate() MyForm.StatusBar1.Text = "Item " + CStr(Indx + 1) + " of " +...
4
309
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
5
2899
by: Bill Nguyen | last post by:
I put 4 webbrower controls on a winform. I can set the initial position of the controls during design time. however, I need to be able to allow isers to resize the windows (maximize, for example) and have the browser windows to resize accordingly. To start with, I would like teh controls remain in their own quadrant, 1, 2, 3, 4 respectively. Any help is greatly appreciated. Bill
1
2695
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
0
9711
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10594
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
10343
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
10331
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,...
1
7631
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
6861
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();...
0
5667
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4306
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
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.