Rem @TTFORM BEGIN 1
Rem Layout generated by the form designer (Ctrl+D).
Rem @TTFORM W Form1 320 200 7 Form1_Load Form1_Closed
Rem @TTFORM T 0 "Designed in TT BASIC"
Rem @TTFORM C 3 Label1 16 12 240 16 1 1 0 -
Rem @TTFORM T 1 "Your name:"
Rem @TTFORM C 4 TextBox2 16 40 208 24 1 1 0 TextBox2_Change
Rem @TTFORM T 2 "Marco"
Rem @TTFORM C 5 CheckBox3 16 76 160 24 1 1 0 CheckBox3_Click
Rem @TTFORM T 3 "Uppercase"
Rem @TTFORM C 2 Button4 16 112 120 28 1 1 0 Button4_Click
Rem @TTFORM T 4 "Greet"
Rem @TTFORM C 2 Button5 160 112 120 28 1 1 0 Button5_Click
Rem @TTFORM T 5 "Close"
Rem @TTFORM C 3 Label6 16 164 280 24 1 1 0 -
Rem @TTFORM T 6 "Ready"
Dim Form1 As New Window("", 320, 200)
Form1.Text = "Designed in TT BASIC"
Dim Label1 As New Label(Form1, "", 16, 12, 240, 16)
Label1.Text = "Your name:"
Dim TextBox2 As New TextBox(Form1, "", 16, 40, 208, 24)
TextBox2.Text = "Marco"
AddHandler TextBox2.Change, AddressOf TextBox2_Change
Dim CheckBox3 As New CheckBox(Form1, "", 16, 76, 160, 24)
CheckBox3.Text = "Uppercase"
AddHandler CheckBox3.Click, AddressOf CheckBox3_Click
Dim Button4 As New Button(Form1, "", 16, 112, 120, 28)
Button4.Text = "Greet"
AddHandler Button4.Click, AddressOf Button4_Click
Dim Button5 As New Button(Form1, "", 160, 112, 120, 28)
Button5.Text = "Close"
AddHandler Button5.Click, AddressOf Button5_Click
Dim Label6 As New Label(Form1, "", 16, 164, 280, 24)
Label6.Text = "Ready"
AddHandler Form1.Load, AddressOf Form1_Load
AddHandler Form1.Closed, AddressOf Form1_Closed
Form1.Show()
Application.Run()
End
Rem @TTFORM END

Sub TextBox2_Change(sender As TextBox)
    
End Sub

Sub CheckBox3_Click(sender As CheckBox)
    
End Sub

Sub Button4_Click(sender As Button)
    Dim greeting As String = "Hello " & TextBox2.Text
    If CheckBox3.Checked Then
        greeting = UCase(greeting)
    End If
    Label6.Text = greeting
End Sub

Sub Button5_Click(sender As Button)
    Form1.Close()
End Sub

Sub Form1_Load(sender As Window)
    
End Sub

Sub Form1_Closed(sender As Window)
    
End Sub
