c# - Detect mobile device minimizing -
c# - Detect mobile device minimizing -
windows mobile 6.5.3 professional .net framework 3.5 c# visual studio 2008 windows 7 professional sp1
when app runs on mc75a, little icon x (or ok if form's minimizebox property set false) nowadays @ top right in "title bar". have been advised app must terminate when icon pressed. found event handler trigger on press event, perform wrapup, , terminate app (application.exit).
i not know how observe icon press. further, there suggestions on best method accomplish shutdown?
tia
the (x) minimize. should minimize, not exit app. follow expected platform behavior. clicking (ok) close form, returning command whomever showed form. if caller application.run(), app terminate , pattern should striving achieve. closing sub-form or dialog 1 time again not expected behavior.
if must close app, add together form code:
protected override void onclosed(eventargs e) { base.onclosed(e); application.exit(); }
again, i'd still disagree this. general rule, if app manually calling application.exit()
, have design problem.
c# windows-ce
Comments
Post a Comment