Hello,
I am testing latest version of Windows Forms package UI (23.1) because I'd like to upgrade an application which uses a very old version of the Library (11.1). The upgrade with the Trial went quite "smooth", no compile errors or runtime (at least till now!).
I have just noticed a strange behaviour regarding the border of my forms with an UltraToolbarsManager on them. The border is "thicker" of the old ones, I have attached two images to better explain this.
Is there a way to obtain the same border effect I had with 11.1 version? I need this because some forms of the "upgraded" application have some text lightly cut due to the inner space reduced caused from the thicker borders.
Thanks in advance
Claudio
4401.WindowsFormsApp15.zip
Please review and modify the sample. I took some screenshots and don't see any difference so far. I'll require precise steps from the moment you drag a new instance of the UltraToolbarsManager to the form to end up with the second screenshot.
Here is a side by side comparison between one of our samples browser samples in 11.1. and 22.2 (we haven't made any deliberate changes to the border)
Can you please provide a screenshot of your desired behavior?
Hello, thank you for the investigation with your colleagues.
So just to summarize the issue, there is no way to "force" the border size from the application side right? The size (4/8px or so on) will be automatically set based on OS - likely 8px - and I have to manage this change in form size with a slight refactoring of the layout of the controls in the inner form area.
Hello and thank you for following up. I've discussed this with our senior developers and presented screenshots of the different behavior between 11.1 and later. We've concluded that the thicker borders are to be expected and based on the OS. In 2008, RoundedFixed was changed from being hardcode at 4px to being based on the OS using the SystemInformation.FrameBorderSize property (something we addressed on our end). This essentially increased the size to 8px. However, we found that this SystemInformation.FrameBorderSize no longer returned the correct size once we upgraded to .NET4.5. Microsoft would not fix this bug, so we had to calculate the border size ourselves (a second issue was addressed).
Let me know if you have any questions.
I have made a test on my development machine (Windows 10 Pro 21H2) with Visual Studio 2022 and your sample application, compiled with .NET Framework 4.8.1.
This is what i see when i use Infragistics 11.1 - FormDisplayStyle = Default
(The Form on the left is the one in Design mode, the one in the center is how the form is displayed at runtime - so as you can see the style is different and the border of the form at design time is "thick")
Now Infragistics 11.1 - FormDisplayStyle = RoundFixed
(As you can see the form is displayed with the same appearance both in design mode and at runtime and in both cases with "thin" borders).
Now Infragistics 23.1 - FormDisplayStyle = Default
(The same as 11.1)
Finally Infragistics 23.1 - FormDisplayStyle = RoundFixed
(Form with "thick" borders both at design time and runtime).
So on my development machine I see the different "look" of the form the in RoundFixed mode both in Design mode and at runtime.
Just as a side note, this is what i see if I try to compile the application against .NET Framework 3.5 with Infragistics 11.1
At design time the form is displayed with "thin" borders but at runtime it has "thicker" borders.
I can't make the same test with Infragistics 23.1 because they don't support .NET Framework 3.5 (maybe it has to be >= 4.0, right?).
In general, it could be an issue regarding .NET Framework version?
I am now noticing the complete opposite. It appears on my end that 11.1 is stuck in Default mode and applying RoundedFixed doesn't change anything until I upgrade. Afterwards in 23.1 I do see the change in size between Default and RoundedFixed
Out of curiosity when you test 11.1, which .NET framework are you using? Its my understanding that you must downgrade to a lower version of .NET. We only started supporting .NET 4 and later in versions 11.2
With that said I can still swap the dlls with a .NET 4.8.1 project but I am still getting different results than you are. I now notice the following:
Here is what I see in 11.1 when setting RoundedFixed, and I get the same behavior with Default/23.1
23.1: RoundedFixed
Please confirm once more with the sample attached if you see a difference.WindowsFormsApp15 (3).zip