初始化项目
This commit is contained in:
29
BLV_Studio/UART/Form1.vb
Normal file
29
BLV_Studio/UART/Form1.vb
Normal file
@@ -0,0 +1,29 @@
|
||||
Imports System.IO.Ports
|
||||
|
||||
Public Class UartForm1
|
||||
|
||||
''' <summary>
|
||||
''' 调用窗口
|
||||
''' </summary>
|
||||
''' <param name="sender"></param>
|
||||
''' <param name="e"></param>
|
||||
Private Sub UartForm1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
||||
UartPort_cob.Items.AddRange(SerialPort.GetPortNames())
|
||||
CommunicationData_txt.Select()
|
||||
|
||||
CommunicationData_txt.ScrollBars = ScrollBars.Vertical
|
||||
CommunicationData_txt.AllowDrop = False
|
||||
CommunicationData_txt.ScrollToCaret()
|
||||
End Sub
|
||||
''' <summary>
|
||||
''' 串口刷新
|
||||
''' </summary>
|
||||
''' <param name="sender"></param>
|
||||
''' <param name="e"></param>
|
||||
Private Sub RefreshSerialPort_btn_Click(sender As Object, e As EventArgs) Handles RefreshSerialPort_btn.Click
|
||||
|
||||
End Sub
|
||||
|
||||
' Private Function GetUartPort()
|
||||
|
||||
End Class
|
||||
Reference in New Issue
Block a user