Hi,
Last week we upgrade Visual Studio from 2010 to 2012. Since then we noticed a small change in how the UltraMessagebox is being displayed.The margin below the buttons is gone. As a result the buttons are touching the bottom border.
After we noticed this we also upgraded Infragistics to 2012.2 but this didn't change anything.
Is there any way i can get a margin below the buttons?
Hello ,
You could avoid this with simple implementation of CreationFilter, please see attached sample.
Please let me know if you have any further questions
Solution works but still looks a bit weird and it seems to me that this is a work around instead of a permanent solution.
Would look better if it's possible to expand the button area in height. Is this possible?
Hello,
On the following link is demonstrated how you could avoid this behavior.
http://www.youtube.com/watch?v=XVbpYOsxJdg&feature=youtu.be
If this doesn’t work for you, please provide show us what exactly happen on your machine and also could you please provide us a sample that demonstrate your issue.
Thank you for using Infragistics Components.
It looks like disabling the hosting process works in .NET 4.0 but does not work in .NET 4.5. The creation filter does work in 4.5 but I don't want to do that throughout my project. That is a hack. Also, I don't think I should have to change my hosting process to get your message box to work. If the default message box works in .NET 4.5 then so should the Infragistics one. Is there a plan to get this fixed?
Any word on this?
As I already mentioned this is not Infragistics issue, and if you review the link where the public MS Bug was described you will see that MS propose a workaround for .NET 4.5
http://connect.microsoft.com/VisualStudio/feedback/details/759413/winform-dialogs-displayed-differently-by-vshost-exe-and-exe-using-vs-2012-when-formborderstyle-set-in-form-codebehind
“. In order to achieve runtime parity between NETFX 4.0 and 4.5, when building a manually change SubSystemVersion compiler option in the project file targeting NETFX 4.5, to a value lower that 6.00, see this article for details:http://msdn.microsoft.com/en-us/library/hh965708.aspx For example: add the following property to your project file: "<subsystemversion>5.01</subsystemversion> "Note that 64bits does not support all subsystem versions numbers.”
I have captured a video how you could apply this workaround.
Please let me know if you have any further questions.
Hello Hristo,
According to you video I tried to edit the project file with no luck.
VS2012 is telling me that I am using an invalid child element "SubsystemVersion" within the element "PropertyGroup"
I am using VS2012 Update 3 with TargetFramework 4.5
Any ideas?
Hi Wolfgang,
Restarting VS does not change anything and the ToolsVersion is 4.0 in my project also.
However, it works anyway. Thanks for your help.
Kind regards
Thomas
Hi Thomas,
your problem is rather interesting since without the SubsystemVersion element being present in the project file the message boxes are not shown appropriately. I've tested that right now by commenting out the SubsystemVersion element and then the buttons touch the lower border of the message box. This means, that VS2012 seems to be confused about this element but when running it this works correctly. Have you tried to close and reopen VS which helps often when it shows weird warnings or behaviors on my machine?
I don't know what the ToolsVersion attribute in the root element Project is used for but this could maybe be also different? In my project ToolsVersion is 4.0
Regards Wolfgang
Hello Wolfgang,
I have attached an image showing the message in VS2012.
Anyway, it works fine now. I missed to disable host process when debugging as mentioned in an earlier post.
Many thanks,
I tried it now with a Playground project of mine, it works fine as a .NET 4.5 project and I'm using VS2012 update 3 as well which doesn't complain about invalid child element SubsystemVersion within element PropertyGroup. I've attached my Playground.csproj-file to this post, you can find the SubsystemVersion element on line 48. With that message boxes using UltraMessageBoxManager are shown correctly.
If needed I could also provide you with the entire project so that you can try to load that on your PC.
Regards, Wolfgang