开发者

MenuItem in Compact Framework 3.5

Is there anyway to programmatically force a MenuItem to raise their popup event? Basically, if you click on it with your stylus or finger, it shows the MenuItem collection for that specific MenuItem. I'd like to be abl开发者_JAVA百科e to do by using a button that I capture.


If you add your menu items to a ContextMenu you can then call ContextMenu.Show with a position and it will show the context menu at that position.

So you could do that in your button click event. Or did you want to 'fake' taps on the menu buttons on the soft menu bar?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜