I had downloaded an eval copy of EssentialSuite v.22.214.171.124.
I am trying to make my Application enabled with XP styles. But when I set Application.EnableVisualStyles(); I can`t use Form.ShowDialog(); method. After closing dialog window an external exception occurs somewhere in deeps of ...Tools.XPMenus.
Example aplication is in attached file.
If I open dlg from button always is ok.
But if I open dlg from menu "File/OpenDlg" after closing dialog app is broken with an external exception.
If menu bar is initialy in floating mode (make it floating, then reopen application).
In that case it does not matter from where i open dlg. Error occurs in both cases when i open it from button and from menu.
And additionaly in that case all buttons in my windows are not XP styled.
Is there a version where bug is fixed?
May be there is a workaround for that bug?
Thanks in adv.
ADAdministrator Syncfusion Team November 15, 2004 05:12 PM
Thanks for bringing these issues to our attention. We have logged a QA report# 692 in this regard, and will try our very best to address the same at the earliest. We appreciate your feedback, and thanks for choosing Syncfusion products.
ADAdministrator Syncfusion Team November 15, 2004 05:13 PM
Also, note that if you wish to have themed look and feel for your menus, you need to set the MainFrameBarManager''s ThemesEnabled property to true. Thanks for choosing Syncfusion.
SKSergey KouznetsovNovember 15, 2004 11:13 PM
Thank you for reply
Will wait for fixing
Hope it will be in release v3.0
MLM. LaughlinDecember 13, 2004 10:38 AM
How is this bug fix coming along? We also have this problem, but only when the baritem that launches a dialog (ShowDialog) is located under a ParentBarItem under a ParentBarItem. Very strange. If we move the item, all is well, but then we can''t organize our menus like our customer expects.
ADAdministrator Syncfusion Team December 20, 2004 09:38 PM
I am afraid this issue has not been addressed yet. So far we have isolated the problem, and have observed that this problem occurs only in an Windows XP environment, but works fine on a Windows 2000 machine. I have once again notified the development team about this issue and have upped the priority of this QA report. We will try our very best to address this at the earliest. We appreciate your patience and cooperation.
ADAdministrator Syncfusion Team January 28, 2005 03:44 AM
Is there any news about this issue?
ADAdministrator Syncfusion Team January 28, 2005 09:23 AM
From the developer:
We''ve found a workaround for this issue. For correct sample running add Appllication.DoEvents() method (immediately before call to Application.Run()) with Application.EnableVisualStyles() in Main method or use neither Application.EnableVisualStyles() nor Appllication.DoEvents().
Hope this helps.
ADAdministrator Syncfusion Team January 31, 2005 01:14 AM
Thank you Gregory, it is working.
MLM. LaughlinFebruary 7, 2005 02:36 PM
Note that the EnableVisualStyles needs to be executed BEFORE the DoEvents in order to use Visual Styles and ShowDialog in an application, as in:
This works 99% of the time, but not always. The one place we have discovered where this technique does NOT work is when we use a Syncfusion XPMenu and configure a barItem under a parentBarItem under a parentBarItem. Say you have a top level menu called "File" and under that you have a parentMenuItem called "New" and under this you have a barItem called "open form". The click event of the "open form" barItem launches a dialog using ShowDialog(). When this dialog closes, no matter how it closes, the application explodes with an unhandled System.Runtime.InteropServices.SEHException, and this error can not be caught and handled.
If this same barItem is placed directly on the XPMenu or under the "File" parentBarItem, this error does not occur.
We''re pretty sure this is Microsoft''s problem, but this is happening only under specific conditions of a Syncfusion control so we are hoping you can come up with some sort of work-around for this problem.
ADAdministrator Syncfusion Team February 8, 2005 10:35 AM
We''re still working on this problem, but I have come up with a workaround for the BarItem under a ParentBarItem under a ParentBarItem problem.
Have the BarItem enable a short Timer. Then have the Timer open the Dialog. This way the menu will be closed when the Dialog opens, avoiding the exception.
ADAdministrator Syncfusion Team February 9, 2005 04:15 AM
Remove EnableVisualStyles and use a manifest file instead.
BRBradJune 5, 2006 08:19 PM
Can you provide a sample manifest with the correct settings for this. Thanks.
>Remove EnableVisualStyles and use a manifest file instead.
J.J.Nagarajan Syncfusion Team June 6, 2006 04:09 AM
The first way to afford Visual Styles is by the use of an XML application manifest file. This file must be in the same directory(bin\Debug\..) as the application itself and this file must have the same name of your application (exe) followed by the file extension ".manifest". I have attached a sample manifest file. Please drop / copy this file in the same location as your completed applications executable file.
Please let me know if you have any questions.