我正在积极增加对流利控制的控制。 我在流程图中增加的控制措施是包含两种控制的小组:大小不一的标签和固定规模的 com箱。
The problem is that the label and combobox are displayed horizontally in their containing panel (well I think). The comboboxs are clipped and are barely visible. I have tried setting the Autosize property of each panel to true but this does not help.
是否有办法在小组中从上到下(打上)进行控制? 流传是否是问题?
得到帮助!
private void PopulateQuestionFlowPanel()
{
foreach (var question in _viewModel.Questions)
{
//build question label
var questionLabel = new Label();
questionLabel.Text = question.Text;
questionLabel.Tag = question.Id;
//build answer combobox
var answerCombo = CreateQuestionComboBox(question);
//put question and answer into panel
var controlPanel = new Panel();
controlPanel.Tag = question.Id;
controlPanel.AutoSize = true;
controlPanel.Controls.Add(questionLabel);
controlPanel.Controls.Add(answerCombo);
//add panels to flowpanel
questionPanel.Controls.Add(controlPanel);
}
}