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.
我有两组单选按钮,但它们放在一个组框中,所以我如何在不创建另一个组框的情况下将它们分开,所以如果我从组 1 中选择一个选项,我仍然可以从组 2 中选择选项?
如果您不想破坏分组框,请使用 Panels (System.Windows.Forms.Panel)。您不会看到边框,但单选按钮将独立工作。
(System.Windows.Forms.Panel)
除非分开,否则单选按钮将就好像它们都在一个组中一样。
您可以使用面板或组框来做到这一点
区别在于组框是可见的,而面板是不可见的。
^ 此处,下方的 3 个单选按钮位于面板中,以将它们与上方的 3 个按钮分开。