Skip to content

Commit

Permalink
Added Always on Top checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Lion-Craft committed Oct 10, 2023
1 parent e4a96b8 commit 4dc6ba8
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Tinyinfo/MainWindow.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions Tinyinfo/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -318,5 +318,17 @@ private void button3_Click(object sender, EventArgs e)
thread.Abort();
}
}

private void onTopCheckbox_CheckedChanged(object sender, EventArgs e)
{
if (onTopCheckbox.Checked)
{
ActiveForm.TopMost = true;
}
else
{
ActiveForm.TopMost = false;
}
}
}
}

0 comments on commit 4dc6ba8

Please sign in to comment.