本文整理汇总了C#中System.Windows.Forms.ComboBox.set_FormattingEnabled方法的典型用法代码示例。如果您正苦于以下问题:C# ComboBox.set_FormattingEnabled方法的具体用法?C# ComboBox.set_FormattingEnabled怎么用?C# ComboBox.set_FormattingEnabled使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.ComboBox
的用法示例。
在下文中一共展示了ComboBox.set_FormattingEnabled方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InitializeComponent
//.........这里部分代码省略.........
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);
box4.set_Location(new System.Drawing.Point(0x55, 0x38));
box4.set_Name("comboBox4");