本文整理汇总了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();
}
示例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;
}
示例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;
}
示例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);
}
示例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.";
}