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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -