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

沒有留言:

張貼留言

Python Modbus 控制 ADAM-6050 18-ch Isolated Digital I/O Module

Python Modbus 控制  ADAM-6050 18-ch Isolated Digital I/O Module import tkinter as tk from tkinter import messagebox from pymodbus.client impor...