how to click "close" button on vb.net form without firing Textbox's Lostfoucs() event

101OIO發表於2008-06-11

[Problem Description]

Once click "close" button on vb.net form Textbox's Lostfoucs() event is fired.

[Resolve]

...Handles Textbox.Validating

...

cmdClose.CausesValidation=False

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/55968/viewspace-1005535/,如需轉載,請註明出處,否則將追究法律責任。

相關文章