Hello,
If we look at a new form the designer part (in this case Form1.Designer.vb) should look like this (I removed the default comments)
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
Inherits System.Windows.Forms.Form
<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
Private components As System.ComponentModel.IContainer
<System.Diagnostics.DebuggerStepThrough()>
Private Sub InitializeComponent()
components = New System.ComponentModel.Container
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.ClientSize = New System.Drawing.Size(800, 450)
Me.Text = "Form1"
End Sub
End Class
Then under project properties ensure you can see the form name
Also, look at ApplicationDesigner.vb (under project menu in Visual Studio select show all files and inspect e.g. in this case we can see DataGridViewForm is the startup form. If it did not exists it would need to change which should not be done here but under project properties as per above.