none
vb.net Form的cursor问题 RRS feed

  • 问题

  •   我再用vb.net 编写程序的时候,cursor的属性不能能改了,也就是不管怎么改,他依然是waitcursor,我再form_load 事件里面去改也没有效果,不知道是不是哪里设置问题

    2008年12月1日 4:40

答案

全部回复

  •  pingker 写:

      我再用vb.net 编写程序的时候,cursor的属性不能能改了,也就是不管怎么改,他依然是waitcursor,我再form_load 事件里面去改也没有效果,不知道是不是哪里设置问题

     

    请检查Form1.Designer.vb

    2008年12月1日 4:45
  •     您好,我看了,那边也是waitcorsor,而且我改了以后,运行一下,designer.vb又被改回去了waitcorsor了

     

     

     

     

    <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
    Partial Class Form1
        Inherits System.Windows.Forms.Form

        'Form 重写 Dispose,以清理组件列表。
        <System.Diagnostics.DebuggerNonUserCode()> _
        Protected Overrides Sub Dispose(ByVal disposing As Boolean)
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
            MyBase.Dispose(disposing)
        End Sub

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

        '注意: 以下过程是 Windows 窗体设计器所必需的
        '可以使用 Windows 窗体设计器修改它。
        '不要使用代码编辑器修改它。
        <System.Diagnostics.DebuggerStepThrough()> _
        Private Sub InitializeComponent()
            Me.components = New System.ComponentModel.Container
            Me.Button1 = New System.Windows.Forms.Button
            Me.TextBox2 = New System.Windows.Forms.TextBox
            Me.Label3 = New System.Windows.Forms.Label
            Me.GroupBox1 = New System.Windows.Forms.GroupBox
            Me.BoardSet = New System.Windows.Forms.ComboBox
            Me.Label16 = New System.Windows.Forms.Label
            Me.TextBox8 = New System.Windows.Forms.TextBox
            Me.TextBox1 = New System.Windows.Forms.TextBox
            Me.Label15 = New System.Windows.Forms.Label
            Me.Label11 = New System.Windows.Forms.Label
            Me.Button2 = New System.Windows.Forms.Button
            Me.TextBox6 = New System.Windows.Forms.TextBox
            Me.Label7 = New System.Windows.Forms.Label
            Me.TextBox5 = New System.Windows.Forms.TextBox
            Me.Label6 = New System.Windows.Forms.Label
            Me.Label5 = New System.Windows.Forms.Label
            Me.TextBox4 = New System.Windows.Forms.TextBox
            Me.Label4 = New System.Windows.Forms.Label
            Me.TextBox3 = New System.Windows.Forms.TextBox
            Me.TreeView1 = New System.Windows.Forms.TreeView
            Me.ListBox1 = New System.Windows.Forms.ListBox
            Me.Label9 = New System.Windows.Forms.Label
            Me.Label10 = New System.Windows.Forms.Label
            Me.GroupBox2 = New System.Windows.Forms.GroupBox
            Me.Label12 = New System.Windows.Forms.Label
            Me.Label2 = New System.Windows.Forms.Label
            Me.Label1 = New System.Windows.Forms.Label
            Me.Label18 = New System.Windows.Forms.Label
            Me.Label17 = New System.Windows.Forms.Label
            Me.Label14 = New System.Windows.Forms.Label
            Me.Label13 = New System.Windows.Forms.Label
            Me.StateDisplay = New System.Windows.Forms.Label
            Me.COM = New System.IO.Ports.SerialPort(Me.components)
            Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
            Me.SqlSelectCommand1 = New System.Data.SqlClient.SqlCommand
            Me.SqlConnection1 = New System.Data.SqlClient.SqlConnection
            Me.SqlDataAdapter1 = New System.Data.SqlClient.SqlDataAdapter
            Me.SqlInsertCommand = New System.Data.SqlClient.SqlCommand
            Me.SqlCommand1 = New System.Data.SqlClient.SqlCommand
            Me.GroupBox3 = New System.Windows.Forms.GroupBox
            Me.GroupBox4 = New System.Windows.Forms.GroupBox
            Me.MenuStrip1 = New System.Windows.Forms.MenuStrip
            Me.ToolStripMenuItem1 = New System.Windows.Forms.ToolStripMenuItem
            Me.ToolStripMenuItem2 = New System.Windows.Forms.ToolStripMenuItem
            Me.ToolStripMenuItem3 = New System.Windows.Forms.ToolStripMenuItem
            Me.GroupBox1.SuspendLayout()
            Me.GroupBox2.SuspendLayout()
            Me.GroupBox3.SuspendLayout()
            Me.GroupBox4.SuspendLayout()
            Me.MenuStrip1.SuspendLayout()
            Me.SuspendLayout()
            '
            'Button1
            '
            Me.Button1.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
            Me.Button1.Location = New System.Drawing.Point(291, 570)
            Me.Button1.Name = "Button1"
            Me.Button1.Size = New System.Drawing.Size(140, 34)
            Me.Button1.TabIndex = 0
            Me.Button1.Text = "开 始 测 试"
            Me.Button1.UseVisualStyleBackColor = True
            Me.Button1.UseWaitCursor = True
            '
            'TextBox2
            '
            Me.TextBox2.Location = New System.Drawing.Point(59, 32)
            Me.TextBox2.Name = "TextBox2"
            Me.TextBox2.Size = New System.Drawing.Size(94, 23)
            Me.TextBox2.TabIndex = 4
            Me.TextBox2.UseWaitCursor = True
            '
            'Label3
            '
            Me.Label3.AutoSize = True
            Me.Label3.Location = New System.Drawing.Point(70, 15)
            Me.Label3.Name = "Label3"
            Me.Label3.Size = New System.Drawing.Size(63, 14)
            Me.Label3.TabIndex = 6
            Me.Label3.Text = "电池数量"
            Me.Label3.UseWaitCursor = True
            '
            'GroupBox1
            '
            Me.GroupBox1.Controls.Add(Me.BoardSet)
            Me.GroupBox1.Controls.Add(Me.Label16)
            Me.GroupBox1.Controls.Add(Me.TextBox8)
            Me.GroupBox1.Controls.Add(Me.TextBox1)
            Me.GroupBox1.Controls.Add(Me.Label15)
            Me.GroupBox1.Controls.Add(Me.Label11)
            Me.GroupBox1.Controls.Add(Me.Button2)
            Me.GroupBox1.Controls.Add(Me.TextBox6)
            Me.GroupBox1.Controls.Add(Me.Label7)
            Me.GroupBox1.Controls.Add(Me.TextBox5)
            Me.GroupBox1.Controls.Add(Me.Label6)
            Me.GroupBox1.Controls.Add(Me.Label5)
            Me.GroupBox1.Controls.Add(Me.TextBox4)
            Me.GroupBox1.Controls.Add(Me.Label4)
            Me.GroupBox1.Controls.Add(Me.TextBox3)
            Me.GroupBox1.Controls.Add(Me.TextBox2)
            Me.GroupBox1.Controls.Add(Me.Label3)
            Me.GroupBox1.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
            Me.GroupBox1.Location = New System.Drawing.Point(83, 160)
            Me.GroupBox1.Name = "GroupBox1"
            Me.GroupBox1.Size = New System.Drawing.Size(198, 273)
            Me.GroupBox1.TabIndex = 7
            Me.GroupBox1.TabStop = False
            Me.GroupBox1.Text = "设定(重量/KG)"
            Me.GroupBox1.UseWaitCursor = True
            '
            'BoardSet
            '
            Me.BoardSet.FormattingEnabled = True
            Me.BoardSet.Items.AddRange(New Object() {"不使用", "10 PCS"})
            Me.BoardSet.Location = New System.Drawing.Point(47, 167)
            Me.BoardSet.Name = "BoardSet"
            Me.BoardSet.Size = New System.Drawing.Size(106, 22)
            Me.BoardSet.TabIndex = 26
            Me.BoardSet.Text = "10 PCS"
            Me.BoardSet.UseWaitCursor = True
            '
            'Label16
            '
            Me.Label16.AutoSize = True
            Me.Label16.Location = New System.Drawing.Point(132, 193)
            Me.Label16.Name = "Label16"
            Me.Label16.Size = New System.Drawing.Size(35, 14)
            Me.Label16.TabIndex = 21
            Me.Label16.Text = "误差"
            Me.Label16.UseWaitCursor = True
            '
            'TextBox8
            '
            Me.TextBox8.Location = New System.Drawing.Point(120, 210)
            Me.TextBox8.Name = "TextBox8"
            Me.TextBox8.Size = New System.Drawing.Size(55, 23)
            Me.TextBox8.TabIndex = 20
            Me.TextBox8.UseWaitCursor = True
            '
            'TextBox1
            '
            Me.TextBox1.Location = New System.Drawing.Point(19, 210)
            Me.TextBox1.Name = "TextBox1"
            Me.TextBox1.Size = New System.Drawing.Size(72, 23)
            Me.TextBox1.TabIndex = 19
            Me.TextBox1.UseWaitCursor = True
            '
            'Label15
            '
            Me.Label15.AutoSize = True
            Me.Label15.Location = New System.Drawing.Point(27, 193)
            Me.Label15.Name = "Label15"
            Me.Label15.Size = New System.Drawing.Size(63, 14)
            Me.Label15.TabIndex = 18
            Me.Label15.Text = "隔板重量"
            Me.Label15.UseWaitCursor = True
            '
            'Label11
            '
            Me.Label11.AutoSize = True
            Me.Label11.Location = New System.Drawing.Point(28, 150)
            Me.Label11.Name = "Label11"
            Me.Label11.Size = New System.Drawing.Size(161, 14)
            Me.Label11.TabIndex = 17
            Me.Label11.Text = "放隔板之前放置电池数量"
            Me.Label11.UseWaitCursor = True
            '
            'Button2
            '
            Me.Button2.Location = New System.Drawing.Point(47, 242)
            Me.Button2.Name = "Button2"
            Me.Button2.Size = New System.Drawing.Size(86, 25)
            Me.Button2.TabIndex = 15
            Me.Button2.Text = "设定"
            Me.Button2.UseVisualStyleBackColor = True
            Me.Button2.UseWaitCursor = True
            '
            'TextBox6
            '
            Me.TextBox6.Location = New System.Drawing.Point(120, 116)
            Me.TextBox6.Name = "TextBox6"
            Me.TextBox6.Size = New System.Drawing.Size(55, 23)
            Me.TextBox6.TabIndex = 14
            Me.TextBox6.UseWaitCursor = True
            '
            'Label7
            '
            Me.Label7.AutoSize = True
            Me.Label7.Location = New System.Drawing.Point(132, 101)
            Me.Label7.Name = "Label7"
            Me.Label7.Size = New System.Drawing.Size(35, 14)
            Me.Label7.TabIndex = 13
            Me.Label7.Text = "误差"
            Me.Label7.UseWaitCursor = True
            '
            'TextBox5
            '
            Me.TextBox5.Location = New System.Drawing.Point(19, 118)
            Me.TextBox5.Name = "TextBox5"
            Me.TextBox5.Size = New System.Drawing.Size(71, 23)
            Me.TextBox5.TabIndex = 12
            Me.TextBox5.Text = "0"
            Me.TextBox5.UseWaitCursor = True
            '
            'Label6
            '
            Me.Label6.AutoSize = True
            Me.Label6.Location = New System.Drawing.Point(52, 101)
            Me.Label6.Name = "Label6"
            Me.Label6.Size = New System.Drawing.Size(35, 14)
            Me.Label6.TabIndex = 11
            Me.Label6.Text = "箱重"
            Me.Label6.UseWaitCursor = True
            '
            'Label5
            '
            Me.Label5.AutoSize = True
            Me.Label5.Location = New System.Drawing.Point(132, 59)
            Me.Label5.Name = "Label5"
            Me.Label5.Size = New System.Drawing.Size(35, 14)
            Me.Label5.TabIndex = 10
            Me.Label5.Text = "误差"
            Me.Label5.UseWaitCursor = True
            '
            'TextBox4
            '
            Me.TextBox4.Location = New System.Drawing.Point(121, 74)
            Me.TextBox4.Name = "TextBox4"
            Me.TextBox4.Size = New System.Drawing.Size(54, 23)
            Me.TextBox4.TabIndex = 9
            Me.TextBox4.UseWaitCursor = True
            '
            'Label4
            '
            Me.Label4.AutoSize = True
            Me.Label4.Location = New System.Drawing.Point(37, 59)
            Me.Label4.Name = "Label4"
            Me.Label4.Size = New System.Drawing.Size(63, 14)
            Me.Label4.TabIndex = 8
            Me.Label4.Text = "电池重量"
            Me.Label4.UseWaitCursor = True
            '
            'TextBox3
            '
            Me.TextBox3.Location = New System.Drawing.Point(19, 74)
            Me.TextBox3.Name = "TextBox3"
            Me.TextBox3.Size = New System.Drawing.Size(72, 23)
            Me.TextBox3.TabIndex = 7
            Me.TextBox3.UseWaitCursor = True
            '
            'TreeView1
            '
            Me.TreeView1.Location = New System.Drawing.Point(22, 20)
            Me.TreeView1.Name = "TreeView1"
            Me.TreeView1.Size = New System.Drawing.Size(298, 357)
            Me.TreeView1.TabIndex = 8
            Me.TreeView1.UseWaitCursor = True
            '
            'ListBox1
            '
            Me.ListBox1.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
            Me.ListBox1.FormattingEnabled = True
            Me.ListBox1.ItemHeight = 14
            Me.ListBox1.Location = New System.Drawing.Point(9, 19)
            Me.ListBox1.Name = "ListBox1"
            Me.ListBox1.Size = New System.Drawing.Size(192, 88)
            Me.ListBox1.TabIndex = 9
            Me.ListBox1.UseWaitCursor = True
            '
            'Label9
            '
            Me.Label9.AutoSize = True
            Me.Label9.Location = New System.Drawing.Point(6, 43)
            Me.Label9.Name = "Label9"
            Me.Label9.Size = New System.Drawing.Size(119, 14)
            Me.Label9.TabIndex = 11
            Me.Label9.Text = "目前计算电池重量"
            Me.Label9.UseWaitCursor = True
            '
            'Label10
            '
            Me.Label10.AutoSize = True
            Me.Label10.Location = New System.Drawing.Point(155, 43)
            Me.Label10.Name = "Label10"
            Me.Label10.Size = New System.Drawing.Size(14, 14)
            Me.Label10.TabIndex = 12
            Me.Label10.Text = "0"
            Me.Label10.UseWaitCursor = True
            '
            'GroupBox2
            '
            Me.GroupBox2.Controls.Add(Me.Label12)
            Me.GroupBox2.Controls.Add(Me.Label2)
            Me.GroupBox2.Controls.Add(Me.Label10)
            Me.GroupBox2.Controls.Add(Me.Label1)
            Me.GroupBox2.Controls.Add(Me.Label9)
            Me.GroupBox2.Controls.Add(Me.Label18)
            Me.GroupBox2.Controls.Add(Me.Label17)
            Me.GroupBox2.Controls.Add(Me.Label14)
            Me.GroupBox2.Controls.Add(Me.Label13)
            Me.GroupBox2.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
            Me.GroupBox2.Location = New System.Drawing.Point(133, 85)
            Me.GroupBox2.Name = "GroupBox2"
            Me.GroupBox2.Size = New System.Drawing.Size(481, 69)
            Me.GroupBox2.TabIndex = 21
            Me.GroupBox2.TabStop = False
            Me.GroupBox2.Text = "电子秤重量状态"
            Me.GroupBox2.UseWaitCursor = True
            '
            'Label12
            '
            Me.Label12.AutoSize = True
            Me.Label12.Location = New System.Drawing.Point(155, 17)
            Me.Label12.Name = "Label12"
            Me.Label12.Size = New System.Drawing.Size(35, 14)
            Me.Label12.TabIndex = 6
            Me.Label12.Text = "重量"
            Me.Label12.UseWaitCursor = True
            '
            'Label2
            '
            Me.Label2.AutoSize = True
            Me.Label2.Location = New System.Drawing.Point(6, 17)
            Me.Label2.Name = "Label2"
            Me.Label2.Size = New System.Drawing.Size(77, 14)
            Me.Label2.TabIndex = 5
            Me.Label2.Text = "电子秤状态"
            Me.Label2.UseWaitCursor = True
            '
            'Label1
            '
            Me.Label1.AutoSize = True
            Me.Label1.Location = New System.Drawing.Point(90, 17)
            Me.Label1.Name = "Label1"
            Me.Label1.Size = New System.Drawing.Size(35, 14)
            Me.Label1.TabIndex = 4
            Me.Label1.Text = "未知"
            Me.Label1.UseWaitCursor = True
            '
            'Label18
            '
            Me.Label18.AutoSize = True
            Me.Label18.Location = New System.Drawing.Point(363, 17)
            Me.Label18.Name = "Label18"
            Me.Label18.Size = New System.Drawing.Size(14, 14)
            Me.Label18.TabIndex = 3
            Me.Label18.Text = "0"
            Me.Label18.UseWaitCursor = True
            '
            'Label17
            '
            Me.Label17.AutoSize = True
            Me.Label17.Location = New System.Drawing.Point(244, 17)
            Me.Label17.Name = "Label17"
            Me.Label17.Size = New System.Drawing.Size(91, 14)
            Me.Label17.TabIndex = 2
            Me.Label17.Text = "上次电池重量"
            Me.Label17.UseWaitCursor = True
            '
            'Label14
            '
            Me.Label14.AutoSize = True
            Me.Label14.Location = New System.Drawing.Point(363, 43)
            Me.Label14.Name = "Label14"
            Me.Label14.Size = New System.Drawing.Size(14, 14)
            Me.Label14.TabIndex = 1
            Me.Label14.Text = "0"
            Me.Label14.UseWaitCursor = True
            '
            'Label13
            '
            Me.Label13.AutoSize = True
            Me.Label13.Location = New System.Drawing.Point(244, 43)
            Me.Label13.Name = "Label13"
            Me.Label13.Size = New System.Drawing.Size(77, 14)
            Me.Label13.TabIndex = 0
            Me.Label13.Text = "历史总重量"
            Me.Label13.UseWaitCursor = True
            '
            'StateDisplay
            '
            Me.StateDisplay.AutoSize = True
            Me.StateDisplay.Font = New System.Drawing.Font("宋体", 24.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
            Me.StateDisplay.Location = New System.Drawing.Point(256, 37)
            Me.StateDisplay.Name = "StateDisplay"
            Me.StateDisplay.Size = New System.Drawing.Size(198, 33)
            Me.StateDisplay.TabIndex = 22
            Me.StateDisplay.Text = "状 态 显 示"
            Me.StateDisplay.UseWaitCursor = True
            '
            'COM
            '
            '
            'Timer1
            '
            Me.Timer1.Interval = 1000
            '
            'SqlSelectCommand1
            '
            Me.SqlSelectCommand1.CommandText = "SELECT     ID, Type" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "FROM         ICType"
            Me.SqlSelectCommand1.Connection = Me.SqlConnection1
            '
            'SqlConnection1
            '
            Me.SqlConnection1.ConnectionString = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\wlz_Data.MDF;Integrated" & _
                " Security=True;Connect Timeout=30;User Instance=True"
            Me.SqlConnection1.FireInfoMessageEventOnUserErrors = False
            '
            'SqlDataAdapter1
            '
            Me.SqlDataAdapter1.InsertCommand = Me.SqlInsertCommand
            Me.SqlDataAdapter1.SelectCommand = Me.SqlSelectCommand1
            Me.SqlDataAdapter1.TableMappings.AddRange(New System.Data.Common.DataTableMapping() {New System.Data.Common.DataTableMapping("Table", "ICType", New System.Data.Common.DataColumnMapping() {New System.Data.Common.DataColumnMapping("ID", "ID"), New System.Data.Common.DataColumnMapping("Type", "Type")})})
            '
            'SqlInsertCommand
            '
            Me.SqlInsertCommand.CommandText = "INSERT INTO [ICType] ([ID], [Type]) VALUES (@ID, @Type)"
            Me.SqlInsertCommand.Connection = Me.SqlConnection1
            Me.SqlInsertCommand.Parameters.AddRange(New System.Data.SqlClient.SqlParameter() {New System.Data.SqlClient.SqlParameter("@ID", System.Data.SqlDbType.[Char], 0, "ID"), New System.Data.SqlClient.SqlParameter("@Type", System.Data.SqlDbType.[Char], 0, "Type")})
            '
            'SqlCommand1
            '
            Me.SqlCommand1.Connection = Me.SqlConnection1
            '
            'GroupBox3
            '
            Me.GroupBox3.Controls.Add(Me.TreeView1)
            Me.GroupBox3.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
            Me.GroupBox3.Location = New System.Drawing.Point(306, 160)
            Me.GroupBox3.Name = "GroupBox3"
            Me.GroupBox3.Size = New System.Drawing.Size(335, 392)
            Me.GroupBox3.TabIndex = 23
            Me.GroupBox3.TabStop = False
            Me.GroupBox3.Text = "电池信息"
            Me.GroupBox3.UseWaitCursor = True
            '
            'GroupBox4
            '
            Me.GroupBox4.Controls.Add(Me.ListBox1)
            Me.GroupBox4.Location = New System.Drawing.Point(74, 439)
            Me.GroupBox4.Name = "GroupBox4"
            Me.GroupBox4.Size = New System.Drawing.Size(207, 113)
            Me.GroupBox4.TabIndex = 24
            Me.GroupBox4.TabStop = False
            Me.GroupBox4.Text = "设定信息"
            Me.GroupBox4.UseWaitCursor = True
            '
            'MenuStrip1
            '
            Me.MenuStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.ToolStripMenuItem1, Me.ToolStripMenuItem2, Me.ToolStripMenuItem3})
            Me.MenuStrip1.Location = New System.Drawing.Point(0, 0)
            Me.MenuStrip1.Name = "MenuStrip1"
            Me.MenuStrip1.Size = New System.Drawing.Size(653, 24)
            Me.MenuStrip1.TabIndex = 25
            Me.MenuStrip1.Text = "MenuStrip1"
            Me.MenuStrip1.UseWaitCursor = True
            '
            'ToolStripMenuItem1
            '
            Me.ToolStripMenuItem1.Name = "ToolStripMenuItem1"
            Me.ToolStripMenuItem1.Size = New System.Drawing.Size(105, 20)
            Me.ToolStripMenuItem1.Text = "Sql Server Setting"
            '
            'ToolStripMenuItem2
            '
            Me.ToolStripMenuItem2.Name = "ToolStripMenuItem2"
            Me.ToolStripMenuItem2.Size = New System.Drawing.Size(97, 20)
            Me.ToolStripMenuItem2.Text = "About SoftWare"
            '
            'ToolStripMenuItem3
            '
            Me.ToolStripMenuItem3.Name = "ToolStripMenuItem3"
            Me.ToolStripMenuItem3.Size = New System.Drawing.Size(37, 20)
            Me.ToolStripMenuItem3.Text = "Exit"
            '
            'Form1
            '
            Me.AccessibleRole = System.Windows.Forms.AccessibleRole.None
            Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 12.0!)
            Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
            Me.AutoSize = True
            Me.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None
            Me.ClientSize = New System.Drawing.Size(653, 616)
            Me.Controls.Add(Me.StateDisplay)
            Me.Controls.Add(Me.GroupBox2)
            Me.Controls.Add(Me.Button1)
            Me.Controls.Add(Me.GroupBox1)
            Me.Controls.Add(Me.GroupBox3)
            Me.Controls.Add(Me.GroupBox4)
            Me.Controls.Add(Me.MenuStrip1)
            Me.Cursor = System.Windows.Forms.Cursors.WaitCursor
            Me.DoubleBuffered = True
            Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D
            Me.MainMenuStrip = Me.MenuStrip1
            Me.Name = "Form1"
            Me.RightToLeftLayout = True
            Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
            Me.Text = "Form1"
            Me.TopMost = True
            Me.UseWaitCursor = True
            Me.GroupBox1.ResumeLayout(False)
            Me.GroupBox1.PerformLayout()
            Me.GroupBox2.ResumeLayout(False)
            Me.GroupBox2.PerformLayout()
            Me.GroupBox3.ResumeLayout(False)
            Me.GroupBox4.ResumeLayout(False)
            Me.MenuStrip1.ResumeLayout(False)
            Me.MenuStrip1.PerformLayout()
            Me.ResumeLayout(False)
            Me.PerformLayout()

        End Sub
        Friend WithEvents Button1 As System.Windows.Forms.Button
        Friend WithEvents TextBox2 As System.Windows.Forms.TextBox
        Friend WithEvents Label3 As System.Windows.Forms.Label
        Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
        Friend WithEvents Label5 As System.Windows.Forms.Label
        Friend WithEvents TextBox4 As System.Windows.Forms.TextBox
        Friend WithEvents Label4 As System.Windows.Forms.Label
        Friend WithEvents TextBox3 As System.Windows.Forms.TextBox
        Friend WithEvents TextBox6 As System.Windows.Forms.TextBox
        Friend WithEvents Label7 As System.Windows.Forms.Label
        Friend WithEvents TextBox5 As System.Windows.Forms.TextBox
        Friend WithEvents Label6 As System.Windows.Forms.Label
        Friend WithEvents TreeView1 As System.Windows.Forms.TreeView
        Friend WithEvents Button2 As System.Windows.Forms.Button
        Friend WithEvents ListBox1 As System.Windows.Forms.ListBox
        Friend WithEvents Label9 As System.Windows.Forms.Label
        Friend WithEvents Label10 As System.Windows.Forms.Label
        Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
        Friend WithEvents Label14 As System.Windows.Forms.Label
        Friend WithEvents Label13 As System.Windows.Forms.Label
        Friend WithEvents Label17 As System.Windows.Forms.Label
        Friend WithEvents Label18 As System.Windows.Forms.Label
        Friend WithEvents StateDisplay As System.Windows.Forms.Label
        Friend WithEvents Label2 As System.Windows.Forms.Label
        Friend WithEvents Label1 As System.Windows.Forms.Label
        Friend WithEvents COM As System.IO.Ports.SerialPort
        Friend WithEvents Timer1 As System.Windows.Forms.Timer
        Friend WithEvents Label12 As System.Windows.Forms.Label
        Friend WithEvents SqlSelectCommand1 As System.Data.SqlClient.SqlCommand
        Friend WithEvents SqlDataAdapter1 As System.Data.SqlClient.SqlDataAdapter
        Friend WithEvents SqlConnection1 As System.Data.SqlClient.SqlConnection
        Friend WithEvents SqlCommand1 As System.Data.SqlClient.SqlCommand
        Friend WithEvents SqlInsertCommand As System.Data.SqlClient.SqlCommand
        Friend WithEvents Label11 As System.Windows.Forms.Label
        Friend WithEvents Label16 As System.Windows.Forms.Label
        Friend WithEvents TextBox8 As System.Windows.Forms.TextBox
        Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
        Friend WithEvents Label15 As System.Windows.Forms.Label
        Friend WithEvents GroupBox3 As System.Windows.Forms.GroupBox
        Friend WithEvents GroupBox4 As System.Windows.Forms.GroupBox
        Friend WithEvents MenuStrip1 As System.Windows.Forms.MenuStrip
        Friend WithEvents ToolStripMenuItem1 As System.Windows.Forms.ToolStripMenuItem
        Friend WithEvents ToolStripMenuItem2 As System.Windows.Forms.ToolStripMenuItem
        Friend WithEvents ToolStripMenuItem3 As System.Windows.Forms.ToolStripMenuItem
        Friend WithEvents BoardSet As System.Windows.Forms.ComboBox

    End Class

    2008年12月1日 5:01
  • 那句话删掉试试

     

    2008年12月1日 5:30
    版主
  •    删那句没用的,这个我已经解决了,谢谢

    2008年12月1日 5:31
  • 到底是什么问题?怎么解决的?分享一下!

    2008年12月2日 2:06
    版主