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