开发者

Howto size a control in a ToolStripControlHost-item?

开发者 https://www.devze.com 2023-02-26 06:04 出处:网络
i have litte problem here. I just made a UserControl for Undo/Redo like in Visual Studio. I wanted to add it to my MenuStrip by an ToolStripControlHost.

i have litte problem here.

I just made a UserControl for Undo/Redo like in Visual Studio. I wanted to add it to my MenuStrip by an ToolStripControlHost.

The problem is, that the control is too small. It´s width is just about 100, but should be 200. How can i size it? Size property doesn´t change anything. AutoS开发者_StackOverflow中文版ize has lots of issues because of changing controls, Dock doesn´t change anything ... I don´t know what i could do :-/

Thanks a lot :)


Have you tried to set the MinimumSize of your UserControl?

0

精彩评论

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