diff --git a/CanLogger/VolvoCanLogger/LoggerWindow.Designer.cs b/CanLogger/VolvoCanLogger/LoggerWindow.Designer.cs index 17c0a8c..05e23a8 100644 --- a/CanLogger/VolvoCanLogger/LoggerWindow.Designer.cs +++ b/CanLogger/VolvoCanLogger/LoggerWindow.Designer.cs @@ -212,7 +212,13 @@ private void InitializeComponent() "19200", "38400", "57600", - "115200"}); + "115200", + "230400", + "250000", + "500000", + "1000000", + "2000000" + }); this.cmbComSpeed.Location = new System.Drawing.Point(146, 31); this.cmbComSpeed.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.cmbComSpeed.Name = "cmbComSpeed"; diff --git a/CanLogger/VolvoCanLogger/Program.cs b/CanLogger/VolvoCanLogger/Program.cs index 3c2f12f..7381efe 100644 --- a/CanLogger/VolvoCanLogger/Program.cs +++ b/CanLogger/VolvoCanLogger/Program.cs @@ -14,6 +14,8 @@ static class Program [STAThread] static void Main() { + if (Environment.OSVersion.Version.Major >= 6) SetProcessDPIAware(); + Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); @@ -24,6 +26,9 @@ static void Main() Application.Run(new LoggerWindow()); } + [System.Runtime.InteropServices.DllImport("user32.dll")] + private static extern bool SetProcessDPIAware(); + private static void SaveExceptionToFile(Exception ex) { string errorMsg = $"\n{DateTime.Now} Exception: {ex.Message}\nStack Trace:\n {ex.StackTrace}"; diff --git a/Release/VolvoCanLogger.exe b/Release/VolvoCanLogger.exe index 809a1b9..0574b44 100644 Binary files a/Release/VolvoCanLogger.exe and b/Release/VolvoCanLogger.exe differ diff --git a/Release/VolvoCanLogger.exe.config b/Release/VolvoCanLogger.exe.config deleted file mode 100644 index 0f71a3d..0000000 --- a/Release/VolvoCanLogger.exe.config +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/Release/VolvoCanLogger.pdb b/Release/VolvoCanLogger.pdb index ee99653..e932ee4 100644 Binary files a/Release/VolvoCanLogger.pdb and b/Release/VolvoCanLogger.pdb differ