Problems with Windows forms designer

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?=

    #1

    Problems with Windows forms designer

    Hi misters,



    I have a solution with several projects. One project is a Windows
    Application using VB.NET.



    When I try design a UserControl (that Inherits from another UserControl) it
    appears the following error:



    I test in a C# project, and I can design UserControl, but in my project in
    VB.NET not possible.



    Any suggestion about this issue ? any help will be very grateful.



    Thanks in advance.



    The path is not of a legal form.


    at System.IO.Path. NormalizePathFa st(String path, Boolean fullCheck)
    at System.IO.Path. GetFullPathInte rnal(String path)
    at System.Reflecti on.AssemblyName .GetAssemblyNam e(String assemblyFile)
    at
    Microsoft.Visua lStudio.Design. VSTypeResolutio nService.AddPro jectDependencie s(Project project)
    at
    Microsoft.Visua lStudio.Design. VSTypeResolutio nService.Assemb lyEntry.get_Ass embly()
    at
    Microsoft.Visua lStudio.Design. VSTypeResolutio nService.Assemb lyEntry.Search( String
    fullName, String typeName, Boolean ignoreTypeCase, Assembly& assembly, String
    description)
    at
    Microsoft.Visua lStudio.Design. VSTypeResolutio nService.Search ProjectEntries( AssemblyName
    assemblyName, String typeName, Boolean ignoreTypeCase, Assembly& assembly)
    at Microsoft.Visua lStudio.Design. VSTypeResolutio nService.GetTyp e(String
    typeName, Boolean throwOnError, Boolean ignoreCase, ReferenceType refType)
    at
    Microsoft.Visua lStudio.Design. Serialization.C odeDom.Aggregat eTypeResolution Service.GetType (String name, Boolean throwOnError, Boolean ignoreCase)
    at
    Microsoft.Visua lStudio.Design. Serialization.C odeDom.Aggregat eTypeResolution Service.GetType (String name)
    at
    System.Componen tModel.Design.D esignerHost.Sys tem.ComponentMo del.Design.IDes ignerHost.GetTy pe(String typeName)
    at
    System.Componen tModel.Design.S erialization.Co deDomDesignerLo ader.EnsureDocu ment(IDesignerS erializationMan ager manager)
    at
    System.Componen tModel.Design.S erialization.Co deDomDesignerLo ader.PerformLoa d(IDesignerSeri alizationManage r manager)
    at
    Microsoft.Visua lStudio.Design. Serialization.C odeDom.VSCodeDo mDesignerLoader .PerformLoad(ID esignerSerializ ationManager serializationMa nager)
    at
    System.Componen tModel.Design.S erialization.Ba sicDesignerLoad er.BeginLoad(ID esignerLoaderHo st host)



    --


    http://www.setbb.com/putainformatica...opic.php?p=843


  • cfps.Christian

    #2
    Re: Problems with Windows forms designer

    Looks like you're attempting to import the code files from C# to
    VB.NET. You CAN use C# forms in VB.NET but only via a compiled dll
    reference.

    Comment

    Working...