ComboBox.EndUpdate 메서드
정의
ComboBox 메서드에 의해 그리기가 일시 중단된 후 BeginUpdate() 컨트롤 그리기를 다시 시작합니다.Resumes painting the ComboBox control after painting is suspended by the BeginUpdate() method.
public:
void EndUpdate();
public void EndUpdate ();
member this.EndUpdate : unit -> unit
Public Sub EndUpdate ()
예제
다음 코드 예제에서는 및 메서드를 사용 하는 방법을 보여 줍니다 BeginUpdate EndUpdate .The following code example shows the usage of the BeginUpdate and EndUpdate methods. 예제는 클래스 개요에 있는 코드 예제의 일부입니다 ComboBox .The example is part of a code example in the ComboBox class overview.
void addGrandButton_Click( Object^ sender, System::EventArgs^ e )
{
comboBox1->BeginUpdate();
for ( int i = 0; i < 1000; i++ )
{
comboBox1->Items->Add( "New Item " + i.ToString() );
}
comboBox1->EndUpdate();
}
private void addGrandButton_Click(object sender, System.EventArgs e) {
comboBox1.BeginUpdate();
for (int i = 0; i < 1000; i++) {
comboBox1.Items.Add("New Item " + i.ToString());
}
comboBox1.EndUpdate();
}
Private Sub addGrandButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)
comboBox1.BeginUpdate()
Dim I As Integer
For I = 0 To 1000
comboBox1.Items.Add("New Item " + i.ToString())
Next
comboBox1.EndUpdate()
End Sub
설명
The preferred way to add items to the