Results 1 to 3 of 3

Thread: OK or X Button

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2006
    Posts
    108

    OK or X Button

    How do i detect the OK or X Button for Pocket PC 2002, so if the user clicks the OK or X Button, it will prompt the user for something.

    I tried Form_Closing and Form_Closed and Form_Deactivate, but this 3 aren't the methods i want for the program.

    Can anyone help me out on this ?

  2. #2
    Fanatic Member Strider's Avatar
    Join Date
    Sep 2004
    Location
    Dublin, Ireland
    Posts
    612

    Re: OK or X Button

    when the x or ok button is pressed it is the form_closing event that is fired
    this should work
    Barry


    Visual Studio .NET 2008/Visual Studio .NET 2005/Visual Studio .NET 2003
    .NET Framework 3.0 2.0 1.1/ASP.Net 3.0 2.0 1.1/Compact Framework 1.0

    SQL Server 2005/2000/SQL Server CE 2.0


    If you like, rate this post

    Compact Framework for Beginners

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2006
    Posts
    108

    Re: OK or X Button

    If i do a messagebox upon FormClosing, will it work ?

    cause i tried it and it didn't work, i put a breakpoint, neither did it work.

    Sorry
    Last edited by Winder; Aug 17th, 2006 at 07:50 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width