CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 1999
    Posts
    1

    Dynamic Multi-level menus at runtime from ini file?

    I need to create a dynamic menu at runtime from an ini file. I can structure the ini any way I want, but I need to have it dynamically produce multi-level menu items. I have tried some API stuff, but nothing seems to produce a clean solution.

    URGENT


  2. #2
    Join Date
    Sep 1999
    Location
    Germany
    Posts
    66

    Re: Dynamic Multi-level menus at runtime from ini file?

    Hello!

    I think you need:
    1.To the form add global menu item mnuItem1 (as "File").
    2.To global item add second level item mnuItem2 (as "Open") and set Index property of item to 0.
    3.Use follow code for creating new second level items.


    mnuItem2(0).Caption = "Your item 1"
    Load mnuItem2(1)
    mnuItem2(1).Caption = "Your item 2"




    Best regards.


  3. #3
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: Dynamic Multi-level menus at runtime from ini file?

    You could post the code where you are having trouble.

    Or You could check the Articles section of CodeGuru, Vb section.
    http://codeguru.developer.com/vb/Con...nu/index.shtml
    Sure there are some fine links, i have seen.

    RK

  4. #4
    Guest

    Re: Dynamic Multi-level menus at runtime from ini file?

    We're looking for tools and programming languages for an application. Ower first question is exactly, how can we create dynamic multi-level menus from an ini.file or from the application itself. If you or anyone else has solved this probelm with visual basic, we would be very glad to get some information about that.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured