Example Script: Script that shows 'Hello' messagebox.
'This script shows messagebox.
Imports System 'Importing necessary classes.
Imports System.IO
Imports System.Windows.Forms
Imports Microsoft.VisualBasic
Imports System.Data.SqlClient
Namespace WinTr
Public Class MainClass
Public Sub Load
'------- Script Start Line -------
Msgbox("Hello") 'Messagebox displayed.
'------- Script End Line -------
End Sub
End Class
End Namespace
Messagebox displaying script in C# language:
using System; //Importing necessary classes.
using System.IO;
using System.Windows.Forms;
using Microsoft.CSharp;
namespace WinTr
{
class MainClass
{
public void Load()
{
//------- Script Start Line -----
MessageBox.Show("Hello"); //Messagebox displayed.
//------- Script End Line -------
}
}
}
Messaje box that created by Script
Following message box shown when this script runs.