c# - Getting handle of hidden form -


i need open form hidden, need form handle able send messages it.

currently using following code prevent form show up:

protected override void setvisiblecore(bool value) {     if (!ishandlecreated && value)     {         base.createhandle();         value = false;     }     base.setvisiblecore(value); } 

it's working fine. problem when request handle form, shows , no longer hidden:

string handle = this.handle.tostring(); 

of course can set this.hide(), short moment, form showing.

is there way start , keep form hidden, while still able handle it?


Comments

Popular posts from this blog

android - questions about switching from C2DM to GCM -

c++ - Qt setGeometry: Unable to set geometry -

batch file - How to extract all multi-volume RAR archives from subfolders of a folder? -