|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How To Associate An Enter Key In TextBox To A Specific ButtonIs there any simple way to do this?
Thanks, Christopher Lusardi "Christopher Lusardi" <clusard***@aol.com> schrieb: Assign the button to the form's 'AcceptButton' property.> Is there any simple way to do this? -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> Private Sub Textbox1_KeyDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles Textbox1.KeyDown If e.KeyCode = Keys.Enter Then Button1.PerformClick() End Sub HTH -Brian Show quoteHide quote "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message news:eoCeYq0fGHA.4900@TK2MSFTNGP02.phx.gbl... > "Christopher Lusardi" <clusard***@aol.com> schrieb: >> Is there any simple way to do this? > > Assign the button to the form's 'AcceptButton' property. > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://classicvb.org/petition/>
Xcopy Install of VB Classic Application
Project won't run from network drive. scope of command and garbage collection How to Use a Screen Saver app within My Application? Applying word styles using VB .Net using up too much memory and is slow Comparing Two DataTables SET ARITHABORT ON: Why (not)? Web Service Question about a conversion project How to find all CD/DVD & CD/DVD-RW drives? |
|||||||||||||||||||||||