UFT API MessageBox.Show(”text”); throws error

  • Questions
  • UFT API MessageBox.Show(''text''); throws error
Question ID: 106130

I have tried to debug a event code and can not use MessageBox.Show("text"); line. Did I not install something?

Marked as spam
Posted by (Questions: 44, Answers: 0)
Asked on June 10, 2015 5:15 pm
Answers (1)
Private answer

I am not sure you have an install issue. I found if you add the following line code to the header the MessageBox object will started working.

using System.Windows.Forms;

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on June 10, 2015 5:18 pm