我是新來的C#,通過教程工作。我試圖添加一個邊框樣式到組合框,我想能夠檢索所有可能的邊框樣式。我怎樣才能獲得所有winform窗體邊框樣式在c#
private void Form1_Load(object sender, EventArgs e)
{
/*
foreach (FormBorderStyle f in FormBorderStyle)
{
}
*/
// This return only the current one.
FormBorderStyle borderStyleEntry = this.FormBorderStyle;
borderSelector.Items.Add(borderStyleEntry);
}
你是什麼意思與*「檢索所有可用」*?你有沒有檢查過[文檔](http://msdn.microsoft.com/en-us/library/hw8kes41.aspx)? – elgonzo
我讀過這頁yea,我的意思是檢索所有可用的:在視覺模式中,當我點擊窗體,並在屬性我尋找窗體邊框樣式我有4-6選項(沒有)數。我想創建一個像這樣的組合框。通過獲取所有這些邊框樣式並將它們添加到組合框中。 –