Microsoft Communities

Welcome to WindowsClient.net | Sign in | Join

Here are some frequently asked questions about Windows Forms and their answers.

Windows Forms FAQs

How can I control DropDownDirection?

DropDownDirection is controlled via two different mechanisms. One is DefaultDropDownDirection offered on ToolStrip, the other is an argument to the Show() method on ToolStripDropDownMenu.

TooStrip.DropDownDirection

This controls the default direction that sub dropdowns will be shown, not the dropdown itself.

TooStripDropDownDirection

This enum has members only designed for use in certain situations

These four should be used with Show(). These are positioned absolutely and may overlap existing dropdowns.

  • AboveLeft – AboveRight, BelowLeft, BelowRight

These three are for use with Menus and will automatically positioned to not layer over previous menuse.

  • Default – use with either, default, respects RightToLeft
  • Left – use with ToolStripDropDownMenu/ContextMenuStrip, forces left rather than respecting RightToLeft
  • Right – use with ToolStripDropDownMenu/ContextMenuStrip, forces right rather than respecting RightToLeft


Page view counter