OleDb / OleDbConnection resizing form (bug?)

后端 未结 1 1945
抹茶落季
抹茶落季 2021-01-23 04:10

Can someone help with a problem I can\'t seem to resolve. I have created a C# form in both VSE2012 express for desktop and VSE2013 express for Desktop, where i have left the fo

相关标签:
1条回答
  • 2021-01-23 04:42

    This must be a OleDb or .NET bug. It is only noticeable on very high resolution screens and the simple act of calling OleDb.OleDbConnection.Open causes the form to ignore any DPI or Font scaling.

    I've tried moving the call to open the OleDb to a separate class and also to a separate DLL but the results are always the same.

    A user posted an example on YouTube here: https://www.youtube.com/watch?v=zdby6gmbX_4

    I guess we'll just need to report it to MS

    ***** Found a way to fix it

    If you uninstall the "Microsoft Access Database Engine 2010 Redistributable" 32 bit version and then install the 64 bit version. You then uninstall the 64 bit version and then reinstall the 32 bit version it will now work

    0 讨论(0)
提交回复
热议问题