Skip to content

Commit

Permalink
Merge pull request #10 from Lion-Craft/9-always-on-top
Browse files Browse the repository at this point in the history
Added Always on Top checkbox
  • Loading branch information
Lion-Craft authored Oct 10, 2023
2 parents e4a96b8 + 4dc6ba8 commit b75c892
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 b75c892

Please sign in to comment.