Subject: Matrix login procedure messing with Windows Forms scaling
Hello,
I am currently developing a small project based on the MatriX dll, using a regular C# WinForms application in VS2015.
My sample code looks like this:
It works fine, but on Windows 10 HiDPI-Devices (where scaling is set to 200% by default), it breaks the rendering of the window. You can see the result in the attached screenshot, taken from a Surface Book.
I suspect this has something to do with the license window, which would normally appear at this point, but gets suppressed since a valid license is provided...
Regards!
I am currently developing a small project based on the MatriX dll, using a regular C# WinForms application in VS2015.
My sample code looks like this:
- using System;
 - using System.Windows.Forms;
 - using Matrix.Xmpp.Client;
 - namespace WindowsFormsApplication1
 - {
 - public partial class Form1 : Form
 - {
 - String lic = @"MyVerySecretLicenseKey";
 - public Form1()
 - {
 - Matrix.License.LicenseManager.SetLicense(lic);
 - InitializeComponent();
 - }
 - private void button1_Click(object sender, System.EventArgs e)
 - {
 - openXmppSession();
 - }
 - private void openXmppSession()
 - {
 - xmppClient.SetUsername("testuser");
 - xmppClient.SetXmppDomain(Properties.Settings.Default.serverAddress);
 - xmppClient.Password = "testPassWord";
 - xmppClient.Open();
 - }
 - }
 - }
 
It works fine, but on Windows 10 HiDPI-Devices (where scaling is set to 200% by default), it breaks the rendering of the window. You can see the result in the attached screenshot, taken from a Surface Book.
I suspect this has something to do with the license window, which would normally appear at this point, but gets suppressed since a valid license is provided...
Regards!
		The author has attached one file to this post:
	
	
		matrix.png 16.7 kBytesYou have no permission to open this file.
	Csharpie
 Show profile
 Link to this post
 Are there any mentionable drawbacks on this version?