当前位置: 首页>>代码示例>>C#>>正文


C# ListBox.ResumeLayout方法代码示例

本文整理汇总了C#中System.Windows.Forms.ListBox.ResumeLayout方法的典型用法代码示例。如果您正苦于以下问题:C# ListBox.ResumeLayout方法的具体用法?C# ListBox.ResumeLayout怎么用?C# ListBox.ResumeLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Windows.Forms.ListBox的用法示例。


在下文中一共展示了ListBox.ResumeLayout方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Process

        public static void Process(IChangeSet changes, ListBox listBox)
        {
            IDatabase adapter = new ListviewDatabaseAdapter(listBox);

            listBox.SuspendLayout();
            changes.Apply(adapter);
            listBox.ResumeLayout();
        }
开发者ID:automatak,项目名称:dnp3-simulator,代码行数:8,代码来源:ListviewDatabaseAdapter.cs

示例2: CreateEditorControl

 public override Control CreateEditorControl()
 {
     ListBox listBox = new ListBox();
     listBox.SuspendLayout();
     listBox.Width = _defaultWidth;
     listBox.Height = _defaultHeight;
     listBox.ResumeLayout();
     listBox.SelectionMode = SelectionMode.One;
     listBox.SelectedIndexChanged += OnChange;
     listBox.IntegralHeight = false;
     return listBox;
 }
开发者ID:verebes,项目名称:xml_form_editor,代码行数:12,代码来源:XMLList.cs

示例3: EditValue

 /// <summary>
 /// Edits a value based on some user input which is collected from a character control.
 /// </summary>
 /// <param name="context"></param>
 /// <param name="provider"></param>
 /// <param name="value"></param>
 /// <returns></returns>
 public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
 {
     _dialogProvider = provider.GetService(typeof(IWindowsFormsEditorService)) as IWindowsFormsEditorService;
     ListBox cmb = new ListBox();
     FontFamily[] fams = FontFamily.Families;
     cmb.SuspendLayout();
     foreach (FontFamily fam in fams)
     {
         cmb.Items.Add(fam.Name);
     }
     cmb.SelectedValueChanged += CmbSelectedValueChanged;
     cmb.ResumeLayout();
     if (_dialogProvider != null) _dialogProvider.DropDownControl(cmb);
     string test = (string)cmb.SelectedItem;
     return test;
 }
开发者ID:DIVEROVIEDO,项目名称:DotSpatial,代码行数:23,代码来源:FontFamilyNameEditor.cs

示例4: CCSListView

        public CCSListView()
        {
            //  this.ColumnReordered;

            this.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint , true);
            this.SetStyle(ControlStyles.EnableNotifyMessage , true);
            ColumnFormatList = new List<ColumnFormat>();
            sortedId = 0;
            dir = direction.ASCENDING;

            this.SmallImageList = new ImageList();

            // this.SmallImageList.Images.Add("ASCENDING", AppStatus.Properties.Resources.sortAscending);
            //this.SmallImageList.Images.Add("DESCENDING", AppStatus.Properties.Resources.sortDescending);
            listBox1 = new ListBox();
            listBox1.Anchor = AnchorStyles.Bottom;
            listBox1.ResumeLayout(false);
               // this.Controls.Add(listBox1);
            System.ComponentModel.IContainer components;
            components = new System.ComponentModel.Container();
            components.Add(listBox1);
        }
开发者ID:vvFiCKvv,项目名称:CCDetector,代码行数:22,代码来源:CCSListView.cs

示例5: PopulateListBox

		void	PopulateListBox( List< File > _files, ListBox _listBox, Label _label, Dictionary< string, ExtensionFilesGroup > _extensionGroup ) {
			_listBox.SuspendLayout();
			_listBox.Items.Clear();
			_listBox.Items.AddRange( _files.ToArray() );
			_listBox.ResumeLayout();

			// Build the extension group
			_extensionGroup.Clear();
			foreach ( File F in _files ) {
				if ( !_extensionGroup.ContainsKey( F.m_extension ) )
					_extensionGroup.Add( F.m_extension, new ExtensionFilesGroup( F.m_extension ) );
				ExtensionFilesGroup	group = _extensionGroup[F.m_extension];
				group.AddFile( F );
			}

			_label.Text = _files.Count + " files. " + _extensionGroup.Keys.Count + " extensions.";
		}
开发者ID:Patapom,项目名称:GodComplex,代码行数:17,代码来源:Form1.cs


注:本文中的System.Windows.Forms.ListBox.ResumeLayout方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。