1

I am developing an application that has many activities. Is there any way to implement the same menu to all activities?

Joachim Sauer
  • 302,674
  • 57
  • 556
  • 614
adamioan
  • 81
  • 1
  • 10

1 Answers1

1

You can use a code module to create the menu.

Sub CreateMenu(Act As Activity)
    Act.AddMenuItem("m1", "m1")
    Act.AddMenuItem("m2", "m2")
    Act.AddMenuItem("m3", "m3")
End Sub

You can then call this method from other activities. The events will be handled in each activity.

Erel
  • 1,802
  • 2
  • 15
  • 58