⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.vb

📁 广西百色247台电视发射机监控源代码.已经过实践
💻 VB
📖 第 1 页 / 共 5 页
字号:
Imports System.Net.Sockets
Imports System.Net
Imports System.Threading
Imports TransmitTV.LoadData
Imports TransmitTV.Send
Imports TransmitTV.PublicClass
Imports TransmitTV.SourceSwitch
Public Class main
    Inherits System.Windows.Forms.Form
#Region " Windows 窗体设计器生成的代码 "

    Public Sub New()
        MyBase.New()

        '该调用是 Windows 窗体设计器所必需的。
        InitializeComponent()

        '在 InitializeComponent() 调用之后添加任何初始化

    End Sub

    '窗体重写 dispose 以清理组件列表。
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Windows 窗体设计器所必需的
    Private components As System.ComponentModel.IContainer

    '注意: 以下过程是 Windows 窗体设计器所必需的
    '可以使用 Windows 窗体设计器修改此过程。
    '不要使用代码编辑器修改它。
    Friend WithEvents MSComm1 As AxMSCommLib.AxMSComm
    Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
    Friend WithEvents lsvmsg As System.Windows.Forms.RichTextBox
    Friend WithEvents StatusBar1 As System.Windows.Forms.StatusBar
    Friend WithEvents StatusBarPanel1 As System.Windows.Forms.StatusBarPanel
    Friend WithEvents StatusBarPanel2 As System.Windows.Forms.StatusBarPanel
    Friend WithEvents StatusBarPanel3 As System.Windows.Forms.StatusBarPanel
    Friend WithEvents Timer1 As System.Windows.Forms.Timer
    Friend WithEvents NotifyIcon1 As System.Windows.Forms.NotifyIcon
    Friend WithEvents Button2 As System.Windows.Forms.Button
    Friend WithEvents Button1 As System.Windows.Forms.Button
    Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox
    Friend WithEvents lblName As System.Windows.Forms.Label
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents Label6 As System.Windows.Forms.Label
    Friend WithEvents Label7 As System.Windows.Forms.Label
    Friend WithEvents lblport As System.Windows.Forms.Label
    Friend WithEvents lbladdr As System.Windows.Forms.Label
    Friend WithEvents lblsettings As System.Windows.Forms.Label
    Friend WithEvents pictransmit As System.Windows.Forms.PictureBox
    Friend WithEvents lblcomm As System.Windows.Forms.Label
    Friend WithEvents txtVswr As System.Windows.Forms.TextBox
    Friend WithEvents txtPr As System.Windows.Forms.TextBox
    Friend WithEvents txtPo As System.Windows.Forms.TextBox
    Friend WithEvents Label8 As System.Windows.Forms.Label
    Friend WithEvents lblcpy As System.Windows.Forms.Label
    Friend WithEvents chkSelect As System.Windows.Forms.CheckBox
    Friend WithEvents chk1 As System.Windows.Forms.CheckBox
    Friend WithEvents chk2 As System.Windows.Forms.CheckBox
    Friend WithEvents chk3 As System.Windows.Forms.CheckBox
    Friend WithEvents chk4 As System.Windows.Forms.CheckBox
    Friend WithEvents chk5 As System.Windows.Forms.CheckBox
    Friend WithEvents chk6 As System.Windows.Forms.CheckBox
    Friend WithEvents chk7 As System.Windows.Forms.CheckBox
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(main))
        Me.MSComm1 = New AxMSCommLib.AxMSComm
        Me.GroupBox2 = New System.Windows.Forms.GroupBox
        Me.chkSelect = New System.Windows.Forms.CheckBox
        Me.Label8 = New System.Windows.Forms.Label
        Me.lblcpy = New System.Windows.Forms.Label
        Me.lbladdr = New System.Windows.Forms.Label
        Me.lblsettings = New System.Windows.Forms.Label
        Me.lblport = New System.Windows.Forms.Label
        Me.lblcomm = New System.Windows.Forms.Label
        Me.Label7 = New System.Windows.Forms.Label
        Me.Label6 = New System.Windows.Forms.Label
        Me.Label5 = New System.Windows.Forms.Label
        Me.Label4 = New System.Windows.Forms.Label
        Me.txtVswr = New System.Windows.Forms.TextBox
        Me.txtPr = New System.Windows.Forms.TextBox
        Me.txtPo = New System.Windows.Forms.TextBox
        Me.Label3 = New System.Windows.Forms.Label
        Me.pictransmit = New System.Windows.Forms.PictureBox
        Me.Label2 = New System.Windows.Forms.Label
        Me.Label1 = New System.Windows.Forms.Label
        Me.lblName = New System.Windows.Forms.Label
        Me.PictureBox1 = New System.Windows.Forms.PictureBox
        Me.lsvmsg = New System.Windows.Forms.RichTextBox
        Me.StatusBar1 = New System.Windows.Forms.StatusBar
        Me.StatusBarPanel1 = New System.Windows.Forms.StatusBarPanel
        Me.StatusBarPanel2 = New System.Windows.Forms.StatusBarPanel
        Me.StatusBarPanel3 = New System.Windows.Forms.StatusBarPanel
        Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
        Me.NotifyIcon1 = New System.Windows.Forms.NotifyIcon(Me.components)
        Me.Button2 = New System.Windows.Forms.Button
        Me.Button1 = New System.Windows.Forms.Button
        Me.chk1 = New System.Windows.Forms.CheckBox
        Me.chk2 = New System.Windows.Forms.CheckBox
        Me.chk3 = New System.Windows.Forms.CheckBox
        Me.chk4 = New System.Windows.Forms.CheckBox
        Me.chk5 = New System.Windows.Forms.CheckBox
        Me.chk6 = New System.Windows.Forms.CheckBox
        Me.chk7 = New System.Windows.Forms.CheckBox
        CType(Me.MSComm1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.GroupBox2.SuspendLayout()
        CType(Me.StatusBarPanel1, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.StatusBarPanel2, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.StatusBarPanel3, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'MSComm1
        '
        Me.MSComm1.ContainingControl = Me
        Me.MSComm1.Enabled = True
        Me.MSComm1.Location = New System.Drawing.Point(628, 2)
        Me.MSComm1.Name = "MSComm1"
        Me.MSComm1.OcxState = CType(resources.GetObject("MSComm1.OcxState"), System.Windows.Forms.AxHost.State)
        Me.MSComm1.Size = New System.Drawing.Size(38, 38)
        Me.MSComm1.TabIndex = 0
        '
        'GroupBox2
        '
        Me.GroupBox2.BackColor = System.Drawing.Color.LightGray
        Me.GroupBox2.Controls.Add(Me.chkSelect)
        Me.GroupBox2.Controls.Add(Me.Label8)
        Me.GroupBox2.Controls.Add(Me.lblcpy)
        Me.GroupBox2.Controls.Add(Me.lbladdr)
        Me.GroupBox2.Controls.Add(Me.lblsettings)
        Me.GroupBox2.Controls.Add(Me.lblport)
        Me.GroupBox2.Controls.Add(Me.lblcomm)
        Me.GroupBox2.Controls.Add(Me.Label7)
        Me.GroupBox2.Controls.Add(Me.Label6)
        Me.GroupBox2.Controls.Add(Me.Label5)
        Me.GroupBox2.Controls.Add(Me.Label4)
        Me.GroupBox2.Controls.Add(Me.txtVswr)
        Me.GroupBox2.Controls.Add(Me.txtPr)
        Me.GroupBox2.Controls.Add(Me.txtPo)
        Me.GroupBox2.Controls.Add(Me.Label3)
        Me.GroupBox2.Controls.Add(Me.pictransmit)
        Me.GroupBox2.Controls.Add(Me.Label2)
        Me.GroupBox2.Controls.Add(Me.Label1)
        Me.GroupBox2.Controls.Add(Me.lblName)
        Me.GroupBox2.Controls.Add(Me.PictureBox1)
        Me.GroupBox2.Controls.Add(Me.lsvmsg)
        Me.GroupBox2.Controls.Add(Me.MSComm1)
        Me.GroupBox2.Location = New System.Drawing.Point(8, 6)
        Me.GroupBox2.Name = "GroupBox2"
        Me.GroupBox2.Size = New System.Drawing.Size(734, 426)
        Me.GroupBox2.TabIndex = 0
        Me.GroupBox2.TabStop = False
        Me.GroupBox2.Text = "数据显示区"
        '
        'chkSelect
        '
        Me.chkSelect.BackColor = System.Drawing.Color.White
        Me.chkSelect.FlatStyle = System.Windows.Forms.FlatStyle.Popup
        Me.chkSelect.Location = New System.Drawing.Point(54, 390)
        Me.chkSelect.Name = "chkSelect"
        Me.chkSelect.Size = New System.Drawing.Size(74, 18)
        Me.chkSelect.TabIndex = 27
        Me.chkSelect.Text = "显示数据"
        '
        'Label8
        '
        Me.Label8.BackColor = System.Drawing.Color.White
        Me.Label8.ForeColor = System.Drawing.SystemColors.ActiveCaption
        Me.Label8.Location = New System.Drawing.Point(28, 370)
        Me.Label8.Name = "Label8"
        Me.Label8.Size = New System.Drawing.Size(38, 14)
        Me.Label8.TabIndex = 8
        Me.Label8.Text = "厂家:"
        '
        'lblcpy
        '
        Me.lblcpy.AutoSize = True
        Me.lblcpy.BackColor = System.Drawing.Color.White
        Me.lblcpy.ForeColor = System.Drawing.SystemColors.ActiveCaption
        Me.lblcpy.Location = New System.Drawing.Point(92, 370)
        Me.lblcpy.Name = "lblcpy"
        Me.lblcpy.Size = New System.Drawing.Size(42, 17)
        Me.lblcpy.TabIndex = 9
        Me.lblcpy.Text = "---"
        '
        'lbladdr
        '
        Me.lbladdr.AutoSize = True
        Me.lbladdr.BackColor = System.Drawing.Color.White
        Me.lbladdr.ForeColor = System.Drawing.SystemColors.ActiveCaption
        Me.lbladdr.Location = New System.Drawing.Point(92, 332)
        Me.lbladdr.Name = "lbladdr"
        Me.lbladdr.Size = New System.Drawing.Size(42, 17)
        Me.lbladdr.TabIndex = 9
        Me.lbladdr.Text = "---"
        '
        'lblsettings
        '
        Me.lblsettings.AutoSize = True
        Me.lblsettings.BackColor = System.Drawing.Color.White
        Me.lblsettings.ForeColor = System.Drawing.SystemColors.ActiveCaption
        Me.lblsettings.Location = New System.Drawing.Point(92, 350)
        Me.lblsettings.Name = "lblsettings"
        Me.lblsettings.Size = New System.Drawing.Size(42, 17)
        Me.lblsettings.TabIndex = 9
        Me.lblsettings.Text = "---"
        '
        'lblport
        '
        Me.lblport.AutoSize = True
        Me.lblport.BackColor = System.Drawing.Color.White
        Me.lblport.ForeColor = System.Drawing.SystemColors.ActiveCaption
        Me.lblport.Location = New System.Drawing.Point(92, 312)
        Me.lblport.Name = "lblport"
        Me.lblport.Size = New System.Drawing.Size(42, 17)
        Me.lblport.TabIndex = 9
        Me.lblport.Text = "---"
        '
        'lblcomm
        '
        Me.lblcomm.AutoSize = True
        Me.lblcomm.BackColor = System.Drawing.Color.White
        Me.lblcomm.ForeColor = System.Drawing.SystemColors.ActiveCaption
        Me.lblcomm.Location = New System.Drawing.Point(92, 292)
        Me.lblcomm.Name = "lblcomm"
        Me.lblcomm.Size = New System.Drawing.Size(42, 17)
        Me.lblcomm.TabIndex = 9
        Me.lblcomm.Text = "---"
        '
        'Label7
        '
        Me.Label7.BackColor = System.Drawing.Color.White
        Me.Label7.ForeColor = System.Drawing.SystemColors.ActiveCaption
        Me.Label7.Location = New System.Drawing.Point(28, 352)
        Me.Label7.Name = "Label7"
        Me.Label7.Size = New System.Drawing.Size(52, 14)
        Me.Label7.TabIndex = 8
        Me.Label7.Text = "波特率:"
        '
        'Label6
        '
        Me.Label6.BackColor = System.Drawing.Color.White
        Me.Label6.ForeColor = System.Drawing.SystemColors.ActiveCaption
        Me.Label6.Location = New System.Drawing.Point(28, 332)
        Me.Label6.Name = "Label6"
        Me.Label6.Size = New System.Drawing.Size(62, 14)
        Me.Label6.TabIndex = 8
        Me.Label6.Text = "设备地址:"
        '
        'Label5
        '
        Me.Label5.BackColor = System.Drawing.Color.White
        Me.Label5.ForeColor = System.Drawing.SystemColors.ActiveCaption
        Me.Label5.Location = New System.Drawing.Point(28, 312)
        Me.Label5.Name = "Label5"
        Me.Label5.Size = New System.Drawing.Size(64, 14)
        Me.Label5.TabIndex = 8
        Me.Label5.Text = "通讯端口:"
        '
        'Label4
        '
        Me.Label4.BackColor = System.Drawing.Color.White
        Me.Label4.ForeColor = System.Drawing.SystemColors.ActiveCaption
        Me.Label4.Location = New System.Drawing.Point(28, 292)
        Me.Label4.Name = "Label4"
        Me.Label4.Size = New System.Drawing.Size(60, 14)
        Me.Label4.TabIndex = 8
        Me.Label4.Text = "通讯方式:"
        '
        'txtVswr
        '
        Me.txtVswr.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txtVswr.Font = New System.Drawing.Font("Microsoft Sans Serif", 15.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
        Me.txtVswr.Location = New System.Drawing.Point(62, 250)
        Me.txtVswr.Name = "txtVswr"
        Me.txtVswr.Size = New System.Drawing.Size(90, 30)
        Me.txtVswr.TabIndex = 7
        Me.txtVswr.Text = " ------"
        Me.txtVswr.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'txtPr
        '
        Me.txtPr.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txtPr.Font = New System.Drawing.Font("Microsoft Sans Serif", 15.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
        Me.txtPr.Location = New System.Drawing.Point(62, 210)
        Me.txtPr.Name = "txtPr"
        Me.txtPr.Size = New System.Drawing.Size(90, 30)
        Me.txtPr.TabIndex = 7

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -