I had an application that did something this
Menu.Show(Me.Image, e.x, e.y)
'Followed by a block of code
Block of code
The thing is my application didn't expect to execute the block of code until after the user selected the menu item. So basically, when Menu.Show was called, we waited until the user clicked the menu item (at which point the code in the .Click) routine was called, and then we executed "Block of code"
Recently, I "updated" my application and decided to use the ContextMenuStrip for my menu. Well, what happens now is after the Show method is called, the Block of code is executed immediately. Which screws me up.
Haven't yet figured out a solution for this.
Menu.Show(Me.Image, e.x, e.y)
'Followed by a block of code
Block of code
The thing is my application didn't expect to execute the block of code until after the user selected the menu item. So basically, when Menu.Show was called, we waited until the user clicked the menu item (at which point the code in the .Click) routine was called, and then we executed "Block of code"
Recently, I "updated" my application and decided to use the ContextMenuStrip for my menu. Well, what happens now is after the Show method is called, the Block of code is executed immediately. Which screws me up.
Haven't yet figured out a solution for this.
No comments:
Post a Comment