Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我通过使用 Visual Studio 将图片框拖放到 Windows 窗体中。表单以全屏模式打开,但位于窗口右上角的图片框出现在窗口的顶部中心部分,如下所示。
那么,当我位于 Visual Studio 中时,如何使图片框出现在窗口的右上角?
为要粘贴的控件定义锚点和边距。边距定义控件与 Anchor 属性中定义的边界的距离。
使用锚:
选择控件并将属性 [Anchor] 更改为所需的样式 - 应该是右上角