RobotStudio event

Flexpendant GtpuMessageBox ??

Hi,
 

I hope someone can help me. I'm going to use the Flexpendant GTPUMessageBox. However, in the documentation this is only described in C#, and I'm using VB. I have tried, but not succeeded in translating.

 

I use the follwing to call up the msgbox:

 

GTPUMessageBox.Show(Me, New MessageBoxEventHandler(AddressOf_ OnServerMessageClosed), "Do you really want to activate", "Activate?",_ System.Windows.Forms.MessageBoxIcon.Question,_ System.Windows.Forms.MessageBoxButtons.YesNo)

 



Is that OK to begin with?

 

And then, how should my event sub look like?

 

Help would really be appreciated. I might be completely lost here :-)

 

/Per Malmqvist

Comments

  • Maybe:

    Private
    Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    GTPUMessageBox.Show(
    Me, New MessageBoxEventHandler(AddressOf OnServerMessageClosed), "Do you really want to activate", "Activate?", System.Windows.Forms.MessageBoxIcon.Question, System.Windows.Forms.MessageBoxButtons.YesNo)
    End Sub
    Public Sub OnServerMessageClosed(ByVal sender As Object, ByVal e As ABB.Robotics.Tps.Windows.Forms.MessageBoxEventArgs)
    End Sub
    Lennart H
  • Thanks Lennart,
     

    Works great.

     

    /Per Malmqvist