System.Windows.Forms.ComboBox.BeginUpdate C# (CSharp) Method

BeginUpdate() public method

public BeginUpdate ( ) : void
return void
		public void BeginUpdate ()
		{
			suspend_ctrlupdate = true;
		}

Usage Example

Example #1
0
        private void RandomTiler_Load(object sender, System.EventArgs e)
        {
            RandomTiles tiles = RandomTiles.Load();

            cmbTileSet.BeginUpdate();

            foreach (RandomTilesList tileset in tiles.List)
            {
                cmbTileSet.Items.Add(tileset);
            }

            cmbTileSet.EndUpdate();

            if (cmbTileSet.Items.Count > 0)
            {
                cmbTileSet.SelectedIndex = 0;
            }

            HueGroups hues = HueGroups.Load();

            cmbHues.BeginUpdate();

            foreach (HuesCollection huelist in hues.Groups)
            {
                cmbHues.Items.Add(huelist);
            }

            cmbHues.EndUpdate();

            if (cmbHues.Items.Count > 0)
            {
                cmbHues.SelectedIndex = 0;
            }

            UpdateFillText();

            // Maps
            cmbMap.BeginUpdate();

            for (int i = 0; i < 4; i++)
            {
                if (Pandora.Profile.Travel.EnabledMaps[i])
                {
                    cmbMap.Items.Add(Pandora.Profile.Travel.MapNames[i]);
                }
            }

            cmbMap.EndUpdate();

            if (cmbMap.Items.Count > 0)
            {
                cmbMap.SelectedIndex = 0;
            }
        }
All Usage Examples Of System.Windows.Forms.ComboBox::BeginUpdate