|
-
Jun 27th, 2004, 01:10 AM
#1
Thread Starter
New Member
delete button dont work
my delete button on my keyboard stopped working in all applications.is there a way in vb to see if its even getting through when i press it?
-
Jun 27th, 2004, 06:32 AM
#2
Hyperactive Member
Yep.
Put this code into a form:
VB Code:
Private Sub Form_KeyDown(KeyAscii As Integer)
MsgBox KeyAscii
End Sub
Try clicking delete...
You should get a msgbox with a number.
-
Jun 27th, 2004, 04:43 PM
#3
Thread Starter
New Member
When i try to run that code i get
Compile Error:
Procedure declaration does not match description of event or precedure having the same name
???????????
-
Jun 28th, 2004, 12:16 AM
#4
If it is VB6 then try this:
VB Code:
Option Explicit
Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
MsgBox KeyCode
End Sub
Private Sub Form_Load()
KeyPreview = True
End Sub
Not sure but think that Delete key is 46...
-
Jun 28th, 2004, 01:28 AM
#5
VB Code:
Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
MessageBox.Show(e.KeyCode)
End Sub
-
Jun 28th, 2004, 07:09 AM
#6
Thread Starter
New Member
Thanks NoteMe, your code worked, the others didnt.and was the others wrote for .net? and whats the differance?
-
Jun 28th, 2004, 07:23 AM
#7
Originally posted by toogogtobetrue
.and was the others wrote for .net? and whats the differance?
.NET is a new programming technology, but this topic is outside the scope of this thread.
Uh-oh... I'm talking like an author now.
-
Jun 28th, 2004, 07:32 AM
#8
Thread Starter
New Member
sheesh, im just now starting to learn vb6, thats the only compiler i got.if i learn vb6, will i have to start all over to learn .net?seems that way, might as well stop now and go buy a .net compiler and start all over huh.
-
Jun 29th, 2004, 01:15 AM
#9
Originally posted by toogogtobetrue
sheesh, im just now starting to learn vb6, thats the only compiler i got.if i learn vb6, will i have to start all over to learn .net?seems that way, might as well stop now and go buy a .net compiler and start all over huh.
If you start off on VB.NET without knowing VB6 first, you'll have a better learning curve than if you knew VB6 previously.
-
Jun 29th, 2004, 05:29 AM
#10
Banned
Originally posted by toogogtobetrue
sheesh, im just now starting to learn vb6, thats the only compiler i got.if i learn vb6, will i have to start all over to learn .net?seems that way, might as well stop now and go buy a .net compiler and start all over huh.
If you're gonna bother, learn C++.
VB6 is still plenty powerful. .NET has yet to prove itself as viable(25 MB run-time files makes VB6's runtimes relatively nothing). Some call it a failure already.
-
Jun 29th, 2004, 08:06 AM
#11
Originally posted by DiGiTalErRoR
If you're gonna bother, learn C++.
VB6 is still plenty powerful. .NET has yet to prove itself as viable(25 MB run-time files makes VB6's runtimes relatively nothing). Some call it a failure already.
LOL, we are doing C++ in Software Design & Development and we did a class vote on whether to continue with C++ (Only making console apps currently, would go onto Forms and stuff) or goto VB, it was a unanimous decision to goto VB.
VB.NET is quite nice, stick to it, it makes life very easy i found in many situations, accessing the registry is dead simple with .NET, with 6, you needed the API stuff and nice things such as the Cryptography classes are nice and handy, pitty it's confusing to actually use.
With future service packs, the .NET framework will be bundled with Windows so that's not an issue, it is very viable and Microsoft is putting all it's attention into .NET because apparently, Longhorn is built using .NET, at least the early builds were.
I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|