简体   繁体   English

如何使停靠控件可由用户调整大小?

[英]How to make a docked control resizeable by the user?

I have a Form with a control (a SplitContainer) docked on the right side. 我有一个窗体与控件(SplitContainer)停靠在右侧。 The width of the control can be changed in the editor, but not at runtime. 控件的宽度可以在编辑器中更改,但不能在运行时更改。 What do I have to do to make the docked control resizable by the user? 我要怎么做才能使停靠的控件由用户调整大小?

The rest of the form should be a MdiContainer. 表单的其余部分应为MdiContainer。 So as far as I see, other containers are not usable, because they can not contain MDI children. 据我所知,其他容器不可用,因为它们不能包含MDI子级。

尝试将Spliter控件停靠在控件旁边。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使顶部停靠控件出现在*现有的顶部停靠控件下? - How do I make a top-docked control appear *under* the existing top-docked controls? 如何使停靠的面板超过另一个停靠面板的顶部 - How to make a docked panel go overtop of another docked panel 根据停靠在其中的webBrowser控件中的数据调整自定义用户控件的大小 - Resizing custom user control according to data in the webBrowser control docked in it 如何调整停靠控件的大小? - How do I resize a docked control? 如何制作可调整大小的矩形选择工具? - How to make a resizeable rectangle selection tool? 调整面板控件中停靠的用户控件的大小不会调整面板控件的大小-更好的解决方案? - Resizing user control that is docked in Panel control does not resize Panel control - better solution? 可调整大小的自定义控件 - Resizeable custom control 如何在窗体最小化时获取停靠控件的大小? - How to get the size of a docked control while the form is minimized? 如何以编程方式将 Tab 添加到 TabControl 并将 ListView 控件停靠在其中? - How to programmatically add a Tab to TabControl with a ListView control docked inside it? 如何使Windows Forms UserControl自动调整为停靠内容的大小? - How to make Windows Forms UserControl auto-resizing to docked content?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM