Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个有很多活动的应用程序。有没有办法对所有活动实施相同的菜单?
您可以使用代码模块来创建菜单。
Sub CreateMenu(Act As Activity) Act.AddMenuItem("m1", "m1") Act.AddMenuItem("m2", "m2") Act.AddMenuItem("m3", "m3") End Sub
然后,您可以从其他活动中调用此方法。事件将在每个活动中处理。