| | |
Form1.KeyDown Event Problems
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jan 2005
Posts: 23
Reputation:
Solved Threads: 0
When using the Form1.KeyDown, keystrokes don't seem to register.
For example, the Click works fine:
That will display the message box when the form is clicked, but if you change it to:
I can't seem to get the message box to appear.
For example, the Click works fine:
VB.NET Syntax (Toggle Plain Text)
Private Sub Form1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Click MsgBox("Hello") End Sub
That will display the message box when the form is clicked, but if you change it to:
VB.NET Syntax (Toggle Plain Text)
Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown MsgBox("Hello") End Sub
I can't seem to get the message box to appear.
![]() |
Similar Threads
- Creating an event or an action to a button. (PHP)
- please anybody help to solve keydown event for enter button problem (HTML and CSS)
- keydown event ina datagrid (VB.NET)
- Tab Control (C#)
- Javascript: Go To Line Number (JavaScript / DHTML / AJAX)
- [MERGED]can anybody help me with this problem; snake game (Java)
Other Threads in the VB.NET Forum
- Previous Thread: VS .Net 2000 Project files not created
- Next Thread: Application Block in asp.net using vb.net
Views: 20140 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
.net .net2005 30minutes 2005 2008 access account application arithmetic array arrays basic binary bing button buttons c# center check code combobox component connectionstring convert crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dll dropdownlist excel file-dialog folder ftp google hardcopy highlighting image images inline insert listview login mobile ms net networking output passingparameters peertopeervideostreaming picturebox picturebox1 plugin port print printing problem problemwithinstallation project reports" save savedialog searchbox serial server soap sorting sql string syntax table tcp text textbox timer toolbox trim update updown usercontrol vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web wpf






