我有面板對象我的網頁上,我想與另一個小組面板控制不更新
//Info.panel[cb_page_number.SelectedIndex] = pnl_page_active;
Panel new_panel = new Panel();
new_panel.BackColor = Color.White;
//new_panel.Name ="page_"+ (cb_page_number.SelectedIndex+1).ToString();
//cb_page_number.Items.Add(new_panel.Name);
//cb_page_number.SelectedIndex = cb_page_number.Items.Count-1;
pnl_page_active = new_panel;
pnl_page_active.Refresh();
pnl_page_active.Update();
Application.DoEvents();
pnl_page_active有象牙的背景顏色來代替它,並且對一些控制。當我執行上面的代碼,我expext看到pnl_page_active背景已經改變,並沒有控制,但它是一樣的,所以我想知道有什麼問題?
MerC! Mehrzad! – Vahid2017