[]
Changes the z-index of this control to the front.
Use this method to place the control in front of other overlapping form controls on the same parent.
bool BringToFront()
Function BringToFront() As Boolean
| Type | Description |
|---|---|
| bool | true if the control is brought to the front; otherwise, false. |
IButton button1 = worksheet.Controls.AddButton(20, 20, 80, 24);
IButton button2 = worksheet.Controls.AddButton(30, 24, 80, 24);
bool moved = button1.BringToFront();