MainIconHandle Property
Description
Gets or sets the handle for a custom icon for the Main Instruction area of the task dialog.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property MainIconHandle() As Integer
Remarks
To display the icon stored in MainIconHandle, MainIcon must be set to xtpTaskIconCustom and MainIconHandle must contain a valid handle to an icon that is to be displayed in the task dialog Main Instruction area. If MainIconHandle is NULL and MainIcon is set to xtpTaskIconCustom, no icon will be displayed.
MainIcon is set automatically to xtpTaskIconCustom when assigning a value to MainIconHandle.
To use a pre-defined icon, set MainIcon to any value in the TaskDialogIcon enumeration to display that icon next to the Main Instruction area of the task dialog.
The illustration below shows the task dialog using a custom Codejock icon:
![]()
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.