Redigera

Dela via


TabControl.UpdateTabSelection(Boolean) Method

Definition

Sets the Visible property to true for the appropriate TabPage control in the TabPages collection.

This API supports the product infrastructure and is not intended to be used directly from your code.

protected:
 void UpdateTabSelection(bool uiselected);
protected:
 void UpdateTabSelection(bool updateFocus);
protected void UpdateTabSelection (bool uiselected);
protected void UpdateTabSelection (bool updateFocus);
member this.UpdateTabSelection : bool -> unit
member this.UpdateTabSelection : bool -> unit
Protected Sub UpdateTabSelection (uiselected As Boolean)
Protected Sub UpdateTabSelection (updateFocus As Boolean)

Parameters

uiselectedupdateFocus
Boolean

true to change focus to the next TabPage; otherwise, false.

Remarks

This method ensures the appropriate TabPage is visible. If you want the tab control to set the Visible property to true for the next TabPage in the tab order, call this method with updateFocus set to true.

Applies to