|
-
Jun 21st, 2004, 11:09 AM
#1
Thread Starter
Junior Member
Events
I want to know how to add an event. If any of you have added an event before, please look into your code again and paste everything you did to add that event.
Since I am a newbie at this, I will make sure im making sense. so im going to clarify more.
Private Sub cmdAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdAdd.Click
end sub
now.. the event '_click' or 'click' was obviously already added in the program.
I want to beable to add my own event.
Private Sub txtAdjust1B_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtAdjust1B.KeyPress
If KeyAscii = 9 Then
cmdAccept.Enabled = True
End If
End Sub
In vb.NET the 'KeyPress' event does not exist. I want to add this.
Any help would be much appreciated.
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
|