This bug just causes the designer not to load - while it is easily fixed - perhaps there are other issues that this causes.
From my standpoint - report it as an error - but don't prevent the designer from loading as it is an object that is
not "bound" to the designer.
Should this (note the String Declaration with no ending Quotes)
Public Partial Class MainForm
Public FilePathTable as New Data.DataTable
Public DataTypeTable As New Data.Datatable
Public ConnectionInfo as String = "provider=microsoftJet.OleDb.4.0
Public Sub New()
' The Me.InitializeComponent call is required for Windows Forms designer support.
Me.InitializeComponent()
End Sub
really cause ?
Failed to load designer. Check the source code for syntax errors and check if all references are available.
ICSharpCode.FormsDesigner.FormsDesignerLoadException: ICSharpCode.FormsDesigner.FormsDesignerLoadException: Syntax errors in ...MainForm.vb:
-- line 15 col 70: No return allowed inside String literal
-- line 15 col 89: No return allowed inside String literal
-- line 15 col 174: No return allowed inside String literal
-- line 15 col 202: No return allowed inside String literal
-- line 15 col 206: No return allowed inside String literal
-- line 15 col 211: No return allowed inside String literal
-- line 15 col 271: No return allowed inside String literal
-- line 15 col 276: No return allowed inside String literal
-- line 15 col 296: No return allowed inside String literal
-- line 15 col 306: No return allowed inside String literal
-- line 15 col 309: No return allowed inside String literal
-- line 15 col 340: No return allowed inside String literal
-- line 15 col 395: invalid EndOfStmt
-- line 15 col 431: No return allowed inside String literal
at ICSharpCode.FormsDesigner.NRefactoryDesignerLoader.Parse()
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.EnsureDocument(IDesignerSerializationManager manager)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host)
at ICSharpCode.FormsDesigner.FormsDesignerViewContent.LoadDesigner()
at ICSharpCode.FormsDesigner.FormsDesignerViewContent.LoadAndDisplayDesigner()
at ICSharpCode.FormsDesigner.FormsDesignerViewContent.LoadInternal(OpenedFile file, Stream stream)
at ICSharpCode.SharpDevelop.Gui.AbstractViewContentHandlingLoadErrors.Load(OpenedFile file, Stream stream)
Yep that sillouette picture looks a bit like me.