Print Page | Close Window

Get Task Dialog Result from CreateObject

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=19140
Printed Date: 30 January 2025 at 11:56pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Get Task Dialog Result from CreateObject
Posted By: programmer582
Subject: Get Task Dialog Result from CreateObject
Date Posted: 03 November 2011 at 11:32am
Hi. I know how to create task dialog through createobject() code. I put the code in the Module. 

But how can I get which button the user click?


     Dim ts As Object
   
    Set ts = CreateObject("Codejock.TaskDialog." + XtremeSuiteControls.Version)
   
    With ts
        .Reset
   
        .WindowTitle = "Information Program & Management System"
        .EnableMarkup = True
       
        .AllowCancellation = False
    
        .AddButton "&Yes", 10
        .AddButton "&No", 20
        .DefaultButton = 20
       
            .MainInstructionText = "Save Changes?"
            .ContentText = "Changes detected."
           
            .MessageBoxStyle = True
           
        .ShowDialog
       
        '====> How can I know WHich button the user clicks? <=====

    End With





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