Required suggestion: How to create a global menu bar using C # (WPF / WinForms)?

So, I want to create a floating line (no window). How is this achieved in C #?

Also, if you can point some pointers to:

  • How to make the arrow keys "listen" to the global keywords would be appreciated.
  • When another window is maximized, don't let that window maximize on top of my toolbar.

The reason for this is that I want to show my manager the concept of the Mile High (Mac-like) menu bar.

0


a source to share


1 answer


I don't like this concept (I've seen it from time to time), but ...

You will create a form with no mode if FormBorderStyle is set to none. Then place your menus on this form.



You will also have some work in front of you to figure out the screen resolution, but this can easily get distorted. In addition, after clicking the menu, you will need to contact some command class to tell the rest of the application that it was just requested.

The rest of what you're looking for involves a lot of PInvoke'ing, and I usually don't go there unless I need to.

0


a source







All Articles