c# - How to run an application in background for windows mobile 6? -
this question has answer here:
i working on application windows mobile 6. need run application in background . doing using
private void app_menu_closing(object sender, canceleventargs e) { this.hide(); e.cancel = true; }
now need again launch application stop application not able this. can tell me how this?
some options spring mind:
- if need process window messages: create invisible 0-sized message-only window.
- if need listen state changes in kernel synchronization objects: don't create window, wait events, in loop if needed, instead.
- if need listen both: create message window , use msgwaitformultipleobjects react both window messages , kernel events.
for service part of question: cannot create true service in c#, need go native happen. can "almost there" using points above, true service has special perks in os , can't near them in c#.
Comments
Post a Comment