Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Installed VB2008 on XP, then get "missing editor"

Status
Not open for further replies.

GPerk

Programmer
Jul 6, 2002
161
US
I have just installed VB2008 express on a computer with XP system.
When I run VB2008 and create a new application, I can edit the VB source code - but when I click on the 'Form' icon to add controls to the form, I get the message
"Missing editor for file Form1.
make sure the editor for file type (.vb) is installed."

I have reloaded VB2008 but still get this message.
Does anyone know how to fix this problem?
 
First, can you see the <FormName>.Designer.vb file? In Solution Explorer there is a button called "Show All Files". Click this button if you haven't already.

Do you have any code in the <FormName>.Designer.vb file? This file needs to have auto-generated code like the following:

Code:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
    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()
        components = New System.ComponentModel.Container()
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.Text = "Form1"
    End Sub

End Class

If the designer file does not have this code you can get this error.



I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day!
 
My son and I reloaded the entire operating system,
then loaded VB2008, and it works fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top