29 lines
842 B
VB.net
29 lines
842 B
VB.net
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 |