Set the system tray icon font to a fixed size. Fixed the exiting of the application when the form was never shown and Close() is called.

This commit is contained in:
Michael Möller
2010-03-02 22:52:37 +00:00
parent 207860b427
commit b4918b3cc3
3 changed files with 10 additions and 4 deletions

View File

@@ -157,6 +157,9 @@ namespace OpenHardwareMonitor.GUI {
} else {
Show();
}
// Create a handle, otherwise calling Close() does not fire FormClosed
CreateHandle();
}
private void SubHardwareAdded(IHardware hardware, Node node) {
@@ -233,7 +236,7 @@ namespace OpenHardwareMonitor.GUI {
}
private void exitToolStripMenuItem_Click(object sender, EventArgs e) {
Close();
Close();
}
private void timer_Tick(object sender, EventArgs e) {