We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

XPMenus.Bar (StatusBar) & ProgressBar

Thread ID:





23935 Jan 25,2005 01:06 PM UTC Jan 28,2005 03:00 PM UTC WinForms 4
Tags: Tools
Mikaël Morvan
Asked On January 25, 2005 01:06 PM UTC

How can i show a progress bar in the status bar (XPMenus.Bar with BarStyle.IsStatusBar) ? How can i defined the width of the static bar items ? Regards, Mikaël

Administrator [Syncfusion]
Replied On January 27, 2005 03:03 AM UTC

Hi Mikaël, 1. XPMenus.Bar in Statusbar mode can host only BarItems (and its derived objects) and cannot host any other Controls. If you wish to host custom controls in a status bar, then use a detached CommandBar with its DockState set to bottom as shown in the sample attached here. Note that this approach will not support merging in a MDI scenario. 2. I am afraid, a desired size acnnot be set to the StaticBarItems, and they only resize themselves according to the length of the text contained in them. Please let me know if you need any other information. Thanks for your interest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Mikaël Morvan
Replied On January 27, 2005 09:32 AM UTC

Thanks for your sample. But when i add a control in the form and compile the project, i have a message : "Impossible de générer le code pour la propriété ''Controls''. L''erreur était : ''La référence d''objet n''est pas définie à une instance d''un objet.''". In design mode, all work fine but at runtime the control doesn''t appear in the form. Mikaël

Administrator [Syncfusion]
Replied On January 27, 2005 09:43 AM UTC

I see the same problem. When I add a button to the form, it is not added in to the Form.Controls collection in the designer serilized code. Regards Thomas

Administrator [Syncfusion]
Replied On January 28, 2005 03:00 PM UTC

Hi, This is a known problem (QA #837) with detached CommandBars in the Designer that we''re in the process of working on. As a workaround, you can declare your CommandBar programmatically and then call MainFrameBarManager.DetachedCommandBars.Add() yourself. The CommandBar won''t show up in the Designer, but it will show up during runtime. I apologize for any inconvenience this might cause. We''ll fix this problem as soon as possible. Regards, Gregory Austin Syncfusion, Inc.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon