Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Double execution of event code using shortcuts
Message
From
29/04/2002 18:59:44
Jason Dalio
Northern Interior Regional Health Board
Prince George, British Columbia, Canada
 
 
To
All
General information
Forum:
Visual Basic
Category:
Other
Title:
Double execution of event code using shortcuts
Miscellaneous
Thread ID:
00650669
Message ID:
00650669
Views:
42
Anyone ran into this before? I have a shortcut key assigned within my caption property of a command button. If a click this button it opens up a new instance of a form: no problems. If however I hold down my ALT key and hit the shortcut key and step-through the code, it attempts to run the cmdEdit_Click event twice and crashes when trying to create a second instance of the same form due to the assignment of a unique key value in my toolbar. Anyone point me in the right direction of why this code would be running twice when shortcutted and only once when actually clicked?

P.S.: I searched my entire project in case I had left an entry in there calling the cmdEdit_Click event and found no traces of it so i know it is noot happening because of a KeyDown or anything like that.
Reply
Map
View

Click here to load this message in the networking platform