event RemoveGroup (Group as Group)
Fired when a group was removed.

TypeDescription
Group as Group A Group object being removed.

Use the RemoveGroup event to notify your application that a group was released. Use the RemoveGroup event to release any extra data stored by the group. The Remove method fires the RemoveGroup event for each group removed. Use the RemoveItem event to notify your application that an item was deleted. Use the UserData property to associate an extra data to a group.

Syntax for RemoveGroup event, /NET version, on:

private void RemoveGroup(object sender,exontrol.EXLISTBARLib.Group Group)
{
}

Private Sub RemoveGroup(ByVal sender As System.Object,ByVal Group As exontrol.EXLISTBARLib.Group) Handles RemoveGroup
End Sub

Syntax for RemoveGroup event, /COM version, on:

private void RemoveGroup(object sender, AxEXLISTBARLib._IListBarEvents_RemoveGroupEvent e)
{
}

void OnRemoveGroup(LPDISPATCH Group)
{
}

void __fastcall RemoveGroup(TObject *Sender,Exlistbarlib_tlb::IGroup *Group)
{
}

procedure RemoveGroup(ASender: TObject; Group : IGroup);
begin
end;

procedure RemoveGroup(sender: System.Object; e: AxEXLISTBARLib._IListBarEvents_RemoveGroupEvent);
begin
end;

begin event RemoveGroup(oleobject Group)
end event RemoveGroup

Private Sub RemoveGroup(ByVal sender As System.Object, ByVal e As AxEXLISTBARLib._IListBarEvents_RemoveGroupEvent) Handles RemoveGroup
End Sub

Private Sub RemoveGroup(ByVal Group As EXLISTBARLibCtl.IGroup)
End Sub

Private Sub RemoveGroup(ByVal Group As Object)
End Sub

LPARAMETERS Group

PROCEDURE OnRemoveGroup(oListBar,Group)
RETURN

Syntax for RemoveGroup event, /COM version (others), on:

<SCRIPT EVENT="RemoveGroup(Group)" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function RemoveGroup(Group)
End Function
</SCRIPT>

Procedure OnComRemoveGroup Variant llGroup
	Forward Send OnComRemoveGroup llGroup
End_Procedure

METHOD OCX_RemoveGroup(Group) CLASS MainDialog
RETURN NIL

void onEvent_RemoveGroup(COM _Group)
{
}

function RemoveGroup as v (Group as OLE::Exontrol.ListBar.1::IGroup)
end function

function nativeObject_RemoveGroup(Group)
return

The following VB sample displays the caption of the group being removed:

Private Sub ListBar1_RemoveGroup(ByVal Group As EXLISTBARLibCtl.IGroup)
    Debug.Print Group.Caption
End Sub

The following C++ sample displays the caption of the group being removed:

void OnRemoveGroupListbar1(LPDISPATCH Group) 
{
	CGroup group( Group ); group.m_bAutoRelease = FALSE;
	CString strOutput;
	strOutput.Format("%s", (LPCTSTR)group.GetCaption() );
	OutputDebugString( strOutput );		
}

The following VB.NET sample displays the caption of the group being removed:

Private Sub AxListBar1_RemoveGroup(ByVal sender As Object, ByVal e As AxEXLISTBARLib._IListBarEvents_RemoveGroupEvent) Handles AxListBar1.RemoveGroup
    Debug.WriteLine(e.group.Caption)
End Sub

The following C# sample displays the caption of the group being removed:

private void axListBar1_RemoveGroup(object sender, AxEXLISTBARLib._IListBarEvents_RemoveGroupEvent e)
{
	System.Diagnostics.Debug.WriteLine(e.group.Caption);
}

The following VFP sample displays the caption of the group being removed:

*** ActiveX Control Event ***
LPARAMETERS group

with group
	wait window nowait .Caption
endwith