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
Post a Comment