最佳解答者
VB.Net Windows Application Text Box/ button Control Question

問題
解答
-
Hi Chi,
You may catpure the Enter event of the TextBox control, FYI: http://msdn.microsoft.com/en-us/library/system.windows.forms.control.enter(VS.71).aspx
Regards,
Colt
2008年5月4日 上午 05:42 -
Well, You may write code in KeyDown or KeyUp event.
MSDN Library -- Control.KeyDown Event
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keydown(VS.71).aspx
About checking if it is "enter" key, you could check with the
Code SnippetIf (e.KeyChar == 13)
2008年5月7日 上午 02:05
所有回覆
-
Hi Chi,
You may catpure the Enter event of the TextBox control, FYI: http://msdn.microsoft.com/en-us/library/system.windows.forms.control.enter(VS.71).aspx
Regards,
Colt
2008年5月4日 上午 05:42 -
Well, You may write code in KeyDown or KeyUp event.
MSDN Library -- Control.KeyDown Event
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keydown(VS.71).aspx
About checking if it is "enter" key, you could check with the
Code SnippetIf (e.KeyChar == 13)
2008年5月7日 上午 02:05