當前位置: 首頁>>代碼示例>>C#>>正文


C# ComboBox.set_DisplayMember方法代碼示例

本文整理匯總了C#中System.Windows.Forms.ComboBox.set_DisplayMember方法的典型用法代碼示例。如果您正苦於以下問題:C# ComboBox.set_DisplayMember方法的具體用法?C# ComboBox.set_DisplayMember怎麽用?C# ComboBox.set_DisplayMember使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在System.Windows.Forms.ComboBox的用法示例。


在下文中一共展示了ComboBox.set_DisplayMember方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: InitializeComponent


//.........這裏部分代碼省略.........
     label4.set_AutoSize(true);
     label4.set_Location(new System.Drawing.Point(0x11b, 0x3b));
     label4.set_Name("label5");
     label4.set_Size(new System.Drawing.Size(0x27, 13));
     label4.set_TabIndex(9);
     label4.set_Text("Улица");
     label5.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top);
     label5.set_AutoSize(true);
     label5.set_Location(new System.Drawing.Point(0x242, 0x3b));
     label5.set_Name("label6");
     label5.set_Size(new System.Drawing.Size(30, 13));
     label5.set_TabIndex(9);
     label5.set_Text("Дом");
     label6.set_AutoSize(true);
     label6.set_Location(new System.Drawing.Point(3, 0x2f));
     label6.set_Name("label7");
     label6.set_Size(new System.Drawing.Size(0x69, 13));
     label6.set_TabIndex(12);
     label6.set_Text("Начисление с даты");
     label7.set_AutoSize(true);
     label7.set_Location(new System.Drawing.Point(220, 0x2f));
     label7.set_Name("label8");
     label7.set_Size(new System.Drawing.Size(90, 13));
     label7.set_TabIndex(12);
     label7.set_Text("с рассрочкой на");
     label8.set_AutoSize(true);
     label8.set_Location(new System.Drawing.Point(0x16d, 0x2f));
     label8.set_Name("label9");
     label8.set_Size(new System.Drawing.Size(0x33, 13));
     label8.set_TabIndex(12);
     label8.set_Text("месяцев");
     box.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Top);
     box.set_DataSource(this.m_ServicesBS);
     box.set_DisplayMember("CodeName");
     box.set_DropDownStyle(System.Windows.Forms.ComboBoxStyle.DropDownList);
     box.set_FormattingEnabled(true);
     box.set_Location(new System.Drawing.Point(0x55, 0x1d));
     box.set_Name("comboBox1");
     box.set_Size(new System.Drawing.Size(0x2b5, 0x15));
     box.set_TabIndex(3);
     this.m_ServicesBS.set_DataSource(typeof(ServiceOld));
     box2.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Top);
     box2.set_DataSource(this.m_StreetsBS);
     box2.set_DisplayMember("Name");
     box2.set_DropDownStyle(System.Windows.Forms.ComboBoxStyle.DropDownList);
     box2.set_FormattingEnabled(true);
     box2.set_Location(new System.Drawing.Point(0x148, 0x38));
     box2.set_Name("comboBox2");
     box2.set_Size(new System.Drawing.Size(0xf4, 0x15));
     box2.set_TabIndex(6);
     this.m_StreetsBS.set_DataSource(typeof(LocalAddress));
     this.m_StreetsBS.add_CurrentChanged(new System.EventHandler(this.m_StreetsBS_CurrentChanged));
     box3.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top);
     box3.set_DataSource(this.m_HousesBS);
     box3.set_DisplayMember("Name");
     box3.set_DropDownStyle(System.Windows.Forms.ComboBoxStyle.DropDownList);
     box3.set_FormattingEnabled(true);
     box3.set_Location(new System.Drawing.Point(0x266, 0x38));
     box3.set_Name("comboBox3");
     box3.set_Size(new System.Drawing.Size(0x48, 0x15));
     box3.set_TabIndex(7);
     this.m_HousesBS.set_DataSource(typeof(LocalAddress));
     box4.set_DataSource(this.m_SettlementsBS);
     box4.set_DisplayMember("Name");
     box4.set_DropDownStyle(System.Windows.Forms.ComboBoxStyle.DropDownList);
     box4.set_FormattingEnabled(true);
開發者ID:u4097,項目名稱:SQLScript,代碼行數:67,代碼來源:AddFixedSummServicesForm.cs


注:本文中的System.Windows.Forms.ComboBox.set_DisplayMember方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。