Solved

form closing event windows mobile

Posted on 2010-09-24
3
981 Views
Last Modified: 2013-12-21
Hi,

How can I trap form closing event, I tried below:
//form load event
this.Closing += new CancelEventHandler(Form1_FormClosing);

private void Form1_FormClosing(object sender, System.ComponentModel.CancelEventArgs e)

        {
            // Determine if text has changed in the textbox by comparing to original text.
         

        }
When I clicked "X" on form, I could not get close event that I defined.

Please help
0
Comment
Question by:sindhuxyz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 24

Expert Comment

by:alexey_gusev
ID: 33753149
the trouble with WinMo is that "x" does NOT close the form, but does what's called "Smart Close" which is in effect like "minimize"

so when you press "x" you'll get LostFocus or Activated - just experiment with it, add the handlers for those events and see when you arrive there.

personally, I tend to remove "x" from the forms, so if I want to let the user to exit it is done via Menu or whatever UI where I can control it
0
 
LVL 5

Author Comment

by:sindhuxyz
ID: 33753189
Ok, thanks for you advise.

Please tell me how to remove "X"

0
 
LVL 24

Accepted Solution

by:
alexey_gusev earned 500 total points
ID: 33753281
it's easy - in UI Designer, set COntrol Box to False, that's it
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to setup the internet connectivity on Windows Mobile Emulator.   I assume that you already have Microsoft Visual Studio, Microsoft Windows Mobile SDK's and the emulator installed. The emulator is available with Visual Studi…
Preface: This article is part of a series focused on cross platform mobile app development (specifically Android and iOS) using the Alloy framework and Titanium Studio made by Appcelerator (https://www.appcelerator.com/). This article presumes a wor…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question