RobotStudio event

GTPUMessageBox

Hi,

I?_Tm developing a flexpendat application in .net and I need some guidance with the GTPUMessageBox. <?: prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 
How do I get the result from a question (YES,NO) from a GTPUMessageBox?. Can someone give me an example. 

 

Comments

  • see the section in the RAB User's Guide called GTPUMessageBox>Using a callback
    Russell Drown
  • I have looked at the User's Guide but can not find any example of doing it in VB.net just C# please help

  • Smile I figured it out...the below code seems to work fine...

        GTPUMessageBox.Show(Me, New MessageBoxEventHandler(AddressOf Question_Answer), sMsgString, sCaptionString, System.Windows.Forms.MessageBoxIcon.Question, System.Windows.Forms.MessageBoxButtons.YesNo)

      Private Sub Question_Answer(ByVal sender As Object, ByVal e As MessageBoxEventArgs)

        If e.DialogResult = Windows.Forms.DialogResult.Yes Then
          'Do Something
        End If

      End Sub

    Newbe2009-06-19 01:05:49