第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

自定義控件的一個(gè)問題 ?WINFORM。

自定義控件的一個(gè)問題 ?WINFORM。

翻過高山走不出你 2018-12-06 16:42:29
 public ComboxSex()         {             try             {                 this.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;                 this.FormattingEnabled = true;                 this.Items.AddRange(new object[] { "男", "女" });                 //label = new System.Windows.Forms.Label();                 //label.Text = "性別";                 //this.Controls.Add (label);                 this.TextChanged += new EventHandler(ComboxSex_TextChanged);             }             catch (Exception ex)             {                 throw ex;             }         } 當(dāng)在窗體 畫此控件的時(shí)候。             this.comboxSex1 = new WindowsControlLibrary2.ComboxSex();             this.SuspendLayout();             //             // comboxSex1             //             this.comboxSex1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;             this.comboxSex1.FormattingEnabled = true;             this.comboxSex1.Items.AddRange(new object[] {             "男",             "女"}); new 的時(shí)候執(zhí)行了一次。 為什么會(huì)出紅色的代碼。如何取消。
查看完整描述

2 回答

?
拉莫斯之舞

TA貢獻(xiàn)1820條經(jīng)驗(yàn) 獲得超10個(gè)贊

把那些代碼放到Loaded事件里,別放到構(gòu)造函數(shù)里.
查看完整回答
反對 回復(fù) 2019-01-21
  • 2 回答
  • 0 關(guān)注
  • 379 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)