the designer cannot process name "formattingenabled' at line 30.-VBForums
Results 1 to 2 of 2

Thread: the designer cannot process name "formattingenabled' at line 30.

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2017
    Posts
    1

    the designer cannot process name "formattingenabled' at line 30.

    I am an amateur programmer, but have made (simple)applications in basic/visual basic/.net now for decades from time to time.

    I have now downloaded visual studio 2017, and are experiencing problems I havent seen in earlier versions.
    It seems like there is some fundamental about visual studio 2017 which I dont understand. If I keep Visual Studio open, then everything is fine, and I can program and use visual desginer. If I close visual studio, and reopen the application, I get error message.
    I have now tried to just make a listbox or a button and save and close and reopen, and I still get this error message which I dont understand. I can compile and run program, but I cant open design-view.

    "To prevent possible data loss before loading the designer, the following errors must be resolved'
    "the designer cannot process unknown name 'formattingenabled' at line 30. the code within the method 'initializecomponent' is generated by the designer and should not be manually modofied. please remove any changes and try opening the designer'

    I havent removed anything. In this example all I have done is add a listbox.

    I hope anyone can helt an unexperienced user with what I'm missing here.

    <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()
    Me.ListBox1 = New System.Windows.Forms.ListBox()
    Me.SuspendLayout()
    '
    'ListBox1
    '
    Me.ListBox1.FormattingEnabled = True
    Me.ListBox1.Location = New System.Drawing.Point(57, 48)
    Me.ListBox1.Name = "ListBox1"
    Me.ListBox1.Size = New System.Drawing.Size(216, 108)
    Me.ListBox1.TabIndex = 0
    '
    'Form1
    '
    Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
    Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
    Me.ClientSize = New System.Drawing.Size(284, 262)
    Me.Controls.Add(Me.ListBox1)
    Me.Name = "Form1"
    Me.Text = "Form1"
    Me.ResumeLayout(False)

    End Sub

    Friend WithEvents ListBox1 As ListBox
    End Class

  2. #2
    You don't want to know.
    Join Date
    Aug 2010
    Posts
    4,550

    Re: the designer cannot process name "formattingenabled' at line 30.

    To me, that sounds like your installation might be corrupt. Try an uninstall/reinstall cycle and see what happens.
    This answer is wrong. You should be using TableAdapter and Dictionaries instead.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width