Hi Sir/Madam,We use WinForm c# UI component to build our application since v8.3. We found that when users set DPI to 200% or higher DPI. Some UI components reveal problems. Most of them are text issues. Recently, we try to upgrade to .Net 5 and try the latest version v21.1 but still see the same problems.Now we saw two problems when we set to high DPI.
1. Tool tip text are cut. We create a ButtonTool, set the tooltip text and add it to the Ribbon. It looks like the text are enlarged but the border size doesn't. Is there a way to enlarge the tool tip border?
ButtonTool btnReConfigTool= new ButtonTool(_KeyReConfigSettings);btnReConfigTool.SharedProps.ToolTipText = resStr;
2. UltraGrid edit text size is strange. When we select the text and try to edit it, the font size become small. We doesn't set the default font size or change the font size of edit state. It should be the same size of non-edit state. Is there a way to not change the font size?
Thanks
Daniel
Hello Daniel,
Thank you for posting in Infragistics Forum.
DPI Scaling is still a CTP(preview) feature as of v21.1, and UltraToolbarsManager is not listed in the supported controls.
DPI Scaling (CTP)www.infragistics.com/.../dpi-scaling-support
That being said, I’m not able to reproduce the issues you described on my end.I have attached the .NET5 application that includes UltraToolbarsManger and UltraGrid.Can you please test this to see if your issues are reproducible in this sample as well?
WinFormsApp1Net5.zip
Hi Mihoko,Thanks for your quick response.
I've tried the sample and didn't see the same issue. I compared the codes and found that after I add "dpiAware" in the app.manifest to our application, everything also looks good.<dpiAware xmlns="">schemas.microsoft.com/.../dpiAware>However, even I remove this from the sample that you provided, it still works well. If I didn't add this setting in manifest to our application, our application will have those two issues. Although we can resolve this in our application, I still can't figure out the difference. Do you have any ideas about this? Thanks Daniel
Enabling DPI awareness is required in order for our controls to react properly to DPI changes, but it is not a setting specific to our product.For more details about high DPI support in Windows Forms applications in general, please take a look at the MSDN document below.
docs.microsoft.com/.../high-dpi-support-in-windows-forms