I'm not new to programming but somewhat new to .Net and trying out some menu related things in .Net6. My objective (C# in WinForms) is a menu with some items docked Left and some docked Right, all accomplished at runtime. A crude representation:
| menuitem1 | menuitem2 --- (space between menuitems) --- menuitem3 | menuitem4 |
Creating ToolStripItem objects is fine but trying to set tsItem.Dock = DockStyle.Right seems meaningless. It has no affect. Same with trying DockStyle.Fill.
Also tried placing 2 ToolStrips on ToolStripPanel and Join them by specifying Row=0. The 2 ToolStrips end up on the left on 2 different rows, not on the same row to look like one menu.
I must be missing something, probably something simple, an oversight. But I have spent 2 days without understanding. To do this with Panel and non-ToolStripItem classes is simple. What have I missed? Thank you in advance for assistance.