Version

Remove(Object) Method

Removes a button from this button group.
Syntax
'Declaration
 
Public Sub Remove( _
   ByVal btn As Object _
) 
public void Remove( 
   object btn
)

Parameters

btn
The button to be removed.
Remarks

Equality checking of ob is based on Equals, and conventionally this does not identify TBarButtons with equivalent keys. If an application holds what may be a cloned reference to a button present in this group, then developers are advised to use the FromKeyButton method to locate the button within this collection and then call this method on that button object.

If an application needs to know whether ob was successfully removed, it should compare the pre-removal Count to the post-removal Count. On a successful removal, these two values are different.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also