C# How to enable form by double clicking on tray icon -


i want make form default invisible. when user double click on tray icon should visible showing data database. how do such thing in c#. made system tray icon when run project shows form blank values. in advance.

my tray icon on same form.

tinkering visible property doesn't work, application class forces on form initializes properly. can override setvisiblecore() customize behavior. paste code form:

bool mloaded;  protected override void setvisiblecore(bool value) {   if (value && !mloaded) {     this.createhandle();   // ensure load event runs     value = false;         // keep invisible     mloaded = true;   }   base.setvisiblecore(value); } 

Comments

Popular posts from this blog

List<T>().Add problem C# -

Javascript natural sort array/object and maintain index association -