Results 1 to 10 of 10

Thread: Text Box Leave event and Button click Event

Threaded View

  1. #1

    Thread Starter
    Addicted Member scsfdev's Avatar
    Join Date
    Feb 2008
    Location
    Singapore
    Posts
    224

    Text Box Leave event and Button click Event

    Hi all,

    Can i Know how to catch between these 2 event, Leave and Click?

    I have one checking in a textbox Leave event. I will go check whether this ID is already exist in DB or not. If exist, I will prompt MSG box to user.

    When I click on Close button while focus is on textbox, this textbox Leave Event will trigger first before Button Click event.

    So, the form remains open without trigger Button Click event.

    Can I know how to prevent this textbox leave event or how can i catch/control this situation?


    Thanks.
    Last edited by scsfdev; Jun 30th, 2009 at 10:44 PM. Reason: Grammer
    I'm using VS 2005 & 2008 & 2010 with SQL Server 2005 Express.

    My hobby beside programming: http://dslrstranger.wordpress.com

Tags for this Thread

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