Results 1 to 2 of 2

Thread: menu

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2002
    Location
    Australia
    Posts
    73

    menu

    hey there,

    I am new to .NET and am having trouble with menues.

    I would like to put the same menu on aboout 10 forms, but do not want to create a menu on each form.

    Is there a way to creat a component class and call it every time a form loads up so that it show the menu?

    Thanx for your help.
    Hugh Rees
    SERTEV Technologies
    (07) 3375 9806
    0410 585 754
    WWW.SERTEV.COM

  2. #2
    Addicted Member
    Join Date
    Mar 2001
    Location
    Devon, UK
    Posts
    181
    create a class a pass the current form to it to create the menu in the form_load event

    Dim mymenu as new cMenu
    cMenu.AddMenu


    Public Class cMenu

    Friend Sub AddMenu(frmCallingForm as Form)

    DECLARE MENU ITEMS

    frmCallingForm.Menu.MenuItems.Add (YOUR MENU OBJECT)

    End Class
    Wind and waves resolves all problems.

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