Skip to content

Commit

Permalink
Added transparency on inactive search form
Browse files Browse the repository at this point in the history
  • Loading branch information
exectails committed Dec 24, 2016
1 parent f2173f6 commit 7817622
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Fetitor/FrmSearch.Designer.cs

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

10 changes: 10 additions & 0 deletions Fetitor/FrmSearch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,15 @@ public void SelectSearchText()
this.TxtSearchText.Focus();
this.TxtSearchText.SelectAll();
}

private void FrmSearch_Deactivate(object sender, EventArgs e)
{
this.Opacity = 0.5;
}

private void FrmSearch_Activated(object sender, EventArgs e)
{
this.Opacity = 1;
}
}
}

0 comments on commit 7817622

Please sign in to comment.