阅读背景:

在c# Windows窗体应用程序中,当鼠标在文本框外单击时,是否会触发事件处理程序?

来源:互联网 

i'm working on c# windows form application. I'd like to know if there is an event handler for textbox control that is fired whend mouse is clicked outside the textbox.I tried "Leave" and "LostFocus" event Handlers but these are fired only if the mouse is clicked on a clickable control like textbox , button or listbox but if the mouse is clicked on Form or tab or any container the handler is not fired.(To make the question more clear > i want it like the action of hiding AutoCompleteListBox of textbox when mouse is clicked outside the textbox). I hope you understand and i hope there is a direct way to this issue. Thanksi'm working on c# windows form application. I'd




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: