PaxScripter 'Hello'application written in VB.NET.

demo_hello1.jpg arrowr.jpg demo_hello2.jpg
Imports PaxScript.Net

Public Class Form1
    Inherits System.Windows.Forms.Form
    Friend WithEvents Button1 As System.Windows.Forms.Button
    Friend scripter As PaxScripter = New PaxScripter


#Region " Windows Form Designer generated code "
'........................................................
#End Region

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        scripter.Reset()
        scripter.RegisterInstance("button1", Button1)
        scripter.AddModule("1", "VB")
        scripter.AddCode("1", "button1.Text = ""Hello""")
        scripter.Run(RunMode.Run)
        If scripter.HasErrors Then
            MessageBox.Show(scripter.Error_List(0).Message)
        End If
    End Sub
End Class


Copyright © 2005-2024 Alexander Baranovsky. All rights reserved.