Menu stops working?

  • Thread starter Thread starter dinny
  • Start date Start date
D

dinny

I have been rearranging my menu items and now suddenly the
menu commands don't work. It seems that a "1" suffix has been
added to the menu "click" functions. Other than to cut and paste the
code from the old menu functions to the new menu functions,
is there an easier way to fix the "broken links"?
 
dinny said:
I have been rearranging my menu items and now suddenly the
menu commands don't work. It seems that a "1" suffix has been
added to the menu "click" functions. Other than to cut and paste the
code from the old menu functions to the new menu functions,
is there an easier way to fix the "broken links"?

Are you sure the menu items are declared as 'WithEvents' correctly, and the
handlers have a '...Handles...' specified?
 
Are you sure the menu items are declared as 'WithEvents' correctly, and
the
handlers have a '...Handles...' specified?

I am a bit surprised at this question. I created the menu with the designer,
then double clicked on each item to go to the code view where the
function template was already prepared. I don't understand what Handles
you are taking about.
 
dinny said:
I am a bit surprised at this question. I created the menu with the designer,
then double clicked on each item to go to the code view where the
function template was already prepared. I don't understand what Handles
you are taking about.

Take a look at the event handlers:

\\\
....Sub... Handles...
...
End Sub
///

Is there 'Handles MenuItem1.Click' specified, for example?
 
Take a look at the event handlers:
\\\
...Sub... Handles...
...
End Sub
///

Is there 'Handles MenuItem1.Click' specified, for example?

Ok, got you, thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top