请帮忙!我无法在VB项目中查看控制参数调整表单,其他三种表单都是正常的。
如何解决此问题?
这是Designer.vb代码:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Control_Parameter_Adjustment
Inherits System.Windows.Forms.Form
'Form overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
End If
Finally
MyBase.Dispose(disposing)
End Try
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Me.Label1 = New System.Windows.Forms.Label()
Me.GroupBox1 = New System.Windows.Forms.GroupBox()
Me.Label31 = New System.Windows.Forms.Label()
......
End Class
答案 0 :(得分:0)
起初,我为我糟糕的英语道歉。
这对我有用:如果你在项目中添加一个空表单,你可以双击它,你可以看到以下内容:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
End Class
您无法在其他表单中看到该类定义,可能是因为此类已消失(我无法解释您的原因)。
您也可以在表单代码中找到form_Load事件。
只需重写此类,更改类定义中的表单名称。然后,你可以看到设计师。图标也会改变。