Print Page | Close Window

TaskDialog close

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=12255
Printed Date: 25 June 2024 at 1:34am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TaskDialog close
Posted By: OscarM
Subject: TaskDialog close
Date Posted: 25 September 2008 at 9:11am
How can i close taskdialog from TimerEvent?

Ej: "Click on Cancel before x segons to do some action...."

I need a closeDialog



Replies:
Posted By: jpbro
Date Posted: 25 September 2008 at 2:41pm
Call the ClickButton method with the ID of the button you want to click. Something like:


Private Sub Form_Load()
   With Me.TaskDialog1
      .AddButton "Test", 100
      .EnableCallbackTimer = True
      .ShowDialog
   End With
End Sub

Private Sub TaskDialog1_Timer(ByVal MilliSeconds As Long, Reset As Variant)
   If MilliSeconds > 3000 Then
      ' Three-ish seconds
      Me.TaskDialog1.ClickButton 100
   End If
End Sub



-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6




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