Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Get Task Dialog Result from CreateObject
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Get Task Dialog Result from CreateObject

 Post Reply Post Reply
Author
Message
programmer582 View Drop Down
Newbie
Newbie


Joined: 01 November 2011
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote programmer582 Quote  Post ReplyReply Direct Link To This Post Topic: Get Task Dialog Result from CreateObject
    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


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.