Print Page | Close Window

ImageManager Icon and TaskDialog

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=18776
Printed Date: 26 April 2024 at 12:56pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ImageManager Icon and TaskDialog
Posted By: ProScan
Subject: ImageManager Icon and TaskDialog
Date Posted: 04 August 2011 at 5:35am
Hello...

how we can use the imagemanager icon in the Taskdialog ?

i create a new imagemanagericon

    Dim Icon As ImageManagerIcon
    Set Icon = ImageManager1.Icons.GetImage(1, 32)

    in the Taskdialog i set the Properties

        With TaskDialog
            .Reset
            .AllowCancellation = True
            .DialogWidth = 250
            .ParentHwnd = frmxxx.hWnd
            .MainIcon = xtpTaskIconCustom
            .MainIconHandle = Icon.Handle
            ...
            ...
            .ShowDialog
        End With

When i set the taskdialog.mainiconhandle to the icon.handle it does not display the imagemanager icon. Why ???

ProScan








Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net