HeaderPane
Main
Hide
Share Link
Print

SelectionChange Event, SftBox Object

The current selection is changing.

Syntax

C#void object_SelectionChange(object sender, EventArgumentType e);
VB.NETPrivate Sub object_SelectionChange(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.SelectionChange
C++void OnSelectionChangeobject();
CHRESULT OnSelectionChangeobject();

object

A SftBox object.

Comments

The SelectionChange event occurs when the current selection is changing.

Examples

VB.NET View entire sample code

        Case SftBoxAreaConstants.areaSftBoxButton, SftBoxAreaConstants.areaSftBoxCell
            If e.part = SftBoxPortionConstants.partSftBoxDropDown Then
                AxSftBox1.DropDown.Suppress() ' Make sure we don't close the drop down
            End If
            ExpandCollapseItem(e.itemIndex, e.shift)
        End Select
    End Sub

    Private Sub AxSftBox1_SelectionChange(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxSftBox1.SelectionChange
        CopyImageFromCurrentItem()
    End Sub

End Class

C++ View entire sample code

        break;
    }
}

BEGIN_EVENTSINK_MAP(CItemImagesDlg, CDialog)
    //{{AFX_EVENTSINK_MAP(CItemImagesDlg)
	ON_EVENT(CItemImagesDlg, IDC_SFTBOX1, 8 /* ItemClick */, OnItemClickSftBox1, VTS_I4 VTS_I4 VTS_I4 VTS_I2 VTS_I2 VTS_I2)
	ON_EVENT(CItemImagesDlg, IDC_SFTBOX1, 9 /* ItemDblClk */, OnItemDblClkSftBox1, VTS_I4 VTS_I4 VTS_I4 VTS_I2 VTS_I2 VTS_I2)
	ON_EVENT(CItemImagesDlg, IDC_SFTBOX1, 20 /* SelectionChange */, OnSelectionChangeSftBox1, VTS_NONE)
	//}}AFX_EVENTSINK_MAP
END_EVENTSINK_MAP()


BOOL CItemImagesDlg::OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{
    INT_PTR dmResult;

See Also SftBox Object | Object Hierarchy


Last Updated 11/22/2026 - (email)
© 2026 Softel vdm, Inc.