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.
Unfortunately, activation email could not send to your email. Please try again.

XPmenus designer problem

Thread ID:

Created:

Updated:

Platform:

Replies:

30364 Jun 16,2005 01:03 PM Jun 17,2005 06:55 PM Windows Forms 5
loading
Tags: Tools
Administrator [Syncfusion]
Asked On June 16, 2005 01:03 PM

I have XPmenus on a base form. When I try to open any inherited form in the designer, I get the following error messsage: "BarManager Designer Information: The Bar has been deleted from the BarManager. Undoing this Delete will not restore the Bar. However closing the designer and the source file without saving the changes will restore the original settings." The project compile fine, and the menus work runtime, but I am not able to view any inherited forms in the designer any longer. I belive something must have been corrupted in the designer generated code on the base form, but can not figure out what. Any idea that can set me on the rigth track to solve the problem is very wellcome!

Administrator [Syncfusion]
Replied On June 16, 2005 01:08 PM

P.S: I am able to view the base form in the designer, and the menus look fine there, but the designer can not open the derived forms. (I also tried to make a new very simple derived form without success, so I know the error must be on the base form.)

Administrator [Syncfusion]
Replied On June 16, 2005 06:38 PM

Hi Kjetil, What version are you using? Regards, Gregory Austin Syncfusion Inc.

Administrator [Syncfusion]
Replied On June 17, 2005 02:50 AM

Hi Gregory I''m using version 3.2.1.0

Administrator [Syncfusion]
Replied On June 17, 2005 04:10 AM

I found the problem. Turns out it is not due to the XPmenus at all. When the VS2003 designer opens an inherited form it will execute the Form.Load event on the base form. In my case the Form.Load handler acessed a static variable. This variable would always be initialized when the form opens at run time, but not when the form is opened in the designer... This made the designer unable to display the form, and caused me a lot of grief until I understood that the Form.Load handler was actually executed in the designer. After that it was easy to track down. (Why I got the error message from XPmenus, I still don''t really understand, but once I removed the access to the uninitialized variable, the error message is also gone.) Sorry to have troubled you with this.

Administrator [Syncfusion]
Replied On June 17, 2005 06:55 PM

Hi Kjetil, I didn''t know that either. Thanks for the information. Regards, Gregory Austin Syncfusion Inc.

CONFIRMATION

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.

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.

;