2017年11月21日 星期二

[ VB2010 ] - 002 基本資料輸入輸出介面

[ VB2010 ] - 002 基本資料輸入輸出介面








Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim a As String
        a = "大家好! 我是" + TextBox1.Text()
        TextBox2.Text = a
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Dim b As String
        b = InputBox("請輸入姓名")
        b = "大家好! 我是" + TextBox1.Text()
        MsgBox(b)
    End Sub
End Class

沒有留言:

張貼留言

作業2 MQTT (Relay + DHT22) 控制 ------- 利用Node-Red

作業2 MQTT (Relay + DHT22) 控制 ------- 利用Node-Red 1) 安裝Node-Red  https://ithelp.ithome.com.tw/articles/10201795 https://www.youtube.com/watch?v...