|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Dynamic Menus with EventsIs there a way to create dynamic menus and create dynamic events associated
with those menus? I would like to create a menu system based on the contents of a text file. When the menu item is selected it will execute a routine whose name will also appear in the text file. Thanks. Stan Stan Smith ADS Programming Services 2320 Highland Avenue South Suite 290 Birmingham, AL 35205 205-222-1661 ssmith.at.adsprogramming.com "Stan Smith" <ssm***@adsprogramming.com> schrieb: Check out the 'MainMenu' and 'MenuItem' classes, the 'AddHandler and > Is there a way to create dynamic menus and create dynamic events > associated with those menus? I would like to create a menu system based > on the contents of a text file. When the menu item is selected it will > execute a routine whose name will also appear in the text file. 'RemoveHandler' statements and the 'CallByName' function. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> > Check out the 'MainMenu' and 'MenuItem' classes, the 'AddHandler and Herfried,> 'RemoveHandler' statements and the 'CallByName' function. > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://classicvb.org/petition/> Perfect! Thanks! I haven't done much event based programming and I was making it a lot more difficult than it needed to be. Thanks to your suggestion I found the overloaded method that let me add a handler to the MenuItems.Add method. I've been told that it isn't necessary to say thanks when someone answers your question on a newsgroup and that it's even recommended that you don't since it uses up bandwidth unnecessarily. So I'll just say thanks this once for the help that you've provided me this time and the help that you will undoubtedly provide in the future. I've read a number of your responses to other posts and they've saved me a considerable amount of time. Regards, Stan Stan Smith ACT! Certified Consultant ADS Programming Services 2320 Highland Avenue South Suite 290 Birmingham, AL 35205 205-222-1661 www.adsprogramming.com ssmith_at_adsprogramming.com See what 40 Crystal Reports can do for ACT! 6 at www.crystalclearreports.com Stan,
"Stan Smith" <ssm***@adsprogramming.com> schrieb: I am glad you could solve the problem. It's always nice to hear some > I've been told that it isn't necessary to say thanks when someone answers > your question on a newsgroup and that it's even recommended that you don't > since it uses up bandwidth unnecessarily. feedback and a thank you. Otherwise it seems that the OP didn't read the reply. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
I finally did it-- hungarian notation
currentFocus how do you execute javascript after script is regsistered? Outlook.MaiIteml.Move: The RPC server is not available Can't View Form in Designer Visual Basic .NET 2005 Express Unhandled handled exception in Catch line Event order problem ComboBox Using Winsock / TCP Client how do I enable the scrollbars in my textbox |
|||||||||||||||||||||||