Hi Semu,
This is because of Microsoft bug in .Net Framework 2.0 with MenuStrip. I have attached a sample that demonstrates this issue in .Net Framework: there is MyComponent, that supports ISupportInitialize interface, and MenuStrip with some items.
In MyComponent.EndInit() method, a button is added to Hosted Form''s controls, and set DockStyle.Top to that button. You can see the same appearance.
SampleComponent.zip
We already have an open bug report logged regarding this issue::
CommandBar occupies topmost part of form when used with windows Menu Control in VS 2005.
As a workaround, you could follow the steps below to use the CommandBarController along with MenuStrip:
1. Add a commandBarController component to the form.
2. Create a commandBar by right clicking on the commandBarController component.
3. Set the following properties to true for ''CommandBar1''.
a) HideChevron
b) HideCloseButton
c) HideDropDownButton
d) HideGripper - (This will remove the gripper at the left side of commandBar so that the user cannot drag it.)
4. Add a panel to commandBar1.
5. Now Drag and Drop ''MenuStrip'' control into the panel. (The MenuStrip will now appear in the top)
6. You can then add any more commandBars using the normal procedure.
I have attached a sample that shows this workaround completely. Please refer to it and let me know if this meets your requirements.
We appreciate your feedback and thank you for using Syncfusion products.
Regards,
Mano
MenuStrip_CommandBar.zip