Results 1 to 4 of 4

Thread: Toolbar Question

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2001
    Location
    MD
    Posts
    182

    Question Toolbar Question

    I have a toolbar with dropdown menu on my main form (in MDIParent).

    I am able to access it (using Alt + Keys) only from that form when there is no child forms loaded.

    I want it to be accessed even from child forms using access Keys (Alt + Keys).

    Currently it doesn't work.

    I know that none of my questions have been answered (Fully) so far. .Net is scaring me. But I also know that I am doing a very very simple (sample) project with just one Child form & one MDI Form. (May be .NET is for advanced programming only and not for simple (VB) programs.)

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Make sure that on both forms the menuitems you want to show have a MergeType of Add. .NET just takes a little getting used to, soon you'll start thinking in line with it and your problems wont be so bad. .NET is for both small and large apps.

    I just noticed that you said 'ToolBar' and not menuitem, sorry.

    Toolbars are specific to each form and there isn't an automatic way to share them across forms. You have several workarounds that you could do though. you could use a Menuitem instead, thats the easiest, or you could use a hidden menuitem, or set the childs KeyPreview property to true so it can catch keyboard keypresses and forward them to the parent if need be.
    Last edited by Edneeis; Oct 29th, 2003 at 11:11 AM.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Dec 2001
    Location
    MD
    Posts
    182
    Thanks for your reply.

    But none of them works.

    Toolbar accepts only ContextMenu and not MenuItem

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    I don't mean for it to be part of the toolbar I mean just on the form in a MainMenu. Or forward the request from one form to the other via a method and the KeyPreview option. So if you set the KeyPreview to true in the child you should be able to catch the Alt+Key you want and then call a method in the parent to carry out the action.

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