My Error?
- From: "Cypher Drive" <borland@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 4 Sep 2008 09:16:27 +0800
Morten,
Your suggestion nicely executed on my computer only that when I run the Form
I'm receiving the Error Message :
Scenario :
Solution 1
PurchasingSystem - Project
Child - Form (Only the Background Color and size was changed)
Parent - Form (Only the Background Color and size was changed)
RS - Inherited Form based on Parent Form
Public Class RS
Inherits Purchasing_System.Parent
Private Sub RS_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
End Class
WindowsApplication1 - Project
Employee - Class
Form1 - Form
Note :
Purchasing Project Dependencies was: WindowsApplication1
Startup Form - RS
This Error Occurs After I run the Form :
One or more errors encountered while loading the designer. The errors are
listed below. Some errors can be fixed by rebuilding your project, while
others may require code changes.
The path is not of a legal form.
Hide
at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
at System.IO.Path.GetFullPathInternal(String path)
at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile)
at
Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectDependencies(Project
project)
at
Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.get_Assembly()
at
Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.Search(String
fullName, String typeName, Boolean ignoreTypeCase, Assembly& assembly,
String description)
at
Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName
assemblyName, String typeName, Boolean ignoreTypeCase, Assembly& assembly)
at
Microsoft.VisualStudio.Design.VSTypeResolutionService.GetType(String
typeName, Boolean throwOnError, Boolean ignoreCase, ReferenceType refType)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetType(String
name, Boolean throwOnError, Boolean ignoreCase)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetType(String
name)
at
System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.GetType(String
typeName)
at
System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.EnsureDocument(IDesignerSerializationManager
manager)
at
System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager
manager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager
serializationManager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32
fReload)
"Morten Wennevik [C# MVP]" <MortenWennevik@xxxxxxxxxxx> wrote in message
news:AE40F180-AA39-4B44-B55F-0F40CCF3A6D6@xxxxxxxxxxxxxxxx
"Cypher Drive" wrote:
Hi,
Please help me on this one.
How will I be able to access namespace on different projects containted
in
one Solution using VB.NET 2005. Please help
by providing sample codes.
Pseudo :
Project1
Form1
Class1
Class2
Project2
Form1
Class1
Class2
TY.
Hi,
You need to add references before you access classes in another project.
Right click the project you want to read from another project and select
"Add
reference ..." Select the Project tab and doubleclick the other project.
You should then be able to do create objects from another project.
'Inside Project2
Dim f as new Project1.Form1
If class names are unique you could also add Imports Project1 on top of
the
code file in Project 2 and create the object directly.
Imports Project1
...
Dim f as New UniqueForm
--
Happy Coding!
Morten Wennevik [C# MVP]
.
- Follow-Ups:
- RE: My Error?
- From: Morten Wennevik [C# MVP]
- RE: My Error?
- References:
- Names Space on Different Projects
- From: Cypher Drive
- RE: Names Space on Different Projects
- From: Morten Wennevik [C# MVP]
- Names Space on Different Projects
- Prev by Date: RE: Names Space on Different Projects
- Next by Date: setting a default value for a column in code or XSD
- Previous by thread: RE: Names Space on Different Projects
- Next by thread: RE: My Error?
- Index(es):
Relevant Pages
|