Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - TaskDialog close
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

TaskDialog close

 Post Reply Post Reply
Author
Message
OscarM View Drop Down
Groupie
Groupie
Avatar

Joined: 07 November 2005
Status: Offline
Points: 72
Post Options Post Options   Thanks (0) Thanks(0)   Quote OscarM Quote  Post ReplyReply Direct Link To This Post Topic: TaskDialog close
    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
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

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.