我有很多radiobutton
自动panel
滚动设置为true
. 其中一项radiobutton
已检查。我想确保选中的那个应该是可见的,即scrollbar
应该移动垂直以便选中 radiobutton
的是可见的。
有什么办法吗?
PS我已经尝试过,但它不起作用
RadioButton radiobutton = new RadioButton();
.....
panel.Controls.Add(radioButton);
if (some logic)
{
radioButton.Checked = true;
panel.ScrollControlIntoView(radioButton);
}