如何在蓝色棱镜中创建消息框?

How do i create a message box in blue prism?

我需要在 blue prism 中创建几个消息框以进行演示。这是我取得的进展:

1. I am using the code stage
2. In the Inputs tab I have declared my Message and have given it a value
3. In the Code tab I have declared: `MessageBox.Show(Message)`

当我验证代码时出现编译器错误:“

'MessageBox' is not declared "

非常感谢指导。提前致谢!

您需要将 System.Windows.Forms 导入您的命名空间,以便按照您当前在代码中的方式引用 MessageBox 对象。

  1. 打开对象的初始化页面。 Right-click 描述框(默认情况下位于页面的 upper-left)和 select "Properties"。

  2. 单击“代码选项”选项卡。

  3. 通过单击 "Namespace Imports" table 右侧的“添加”按钮添加命名空间导入。将新订单项的值设置为 "System.Windows.Forms".

重置并re-run,您应该可以使用 MessageBox()。