Extra Designer.vb file in Win Form causing problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bill nguyen

    #1

    Extra Designer.vb file in Win Form causing problem

    Suddenly a new file was added to forms that I created in the last 2 days. I
    created and named a form frmDTDownload.
    In Solution Explorer, now I have
    frmDTNDownload. vb
    frmDTNDownload. Designer.vb
    frmDTNDownload. resx

    frmXXX.Designer .vb is new to me and it caused some weird error about form
    designer not working.

    I did add Microsoft Forms 2.0 Object Library (FM20.DLL) to the project
    hoping I can display some Unicode characters (it didn't work) but then
    removed it afterwards. Is it the cause of the problem?
    Any help to resolve the problem (safely remove the Designer.vb file) is
    greatly appreciated.


    Thanks

    Bill


  • Cor Ligthert [MVP]

    #2
    Re: Extra Designer.vb file in Win Form causing problem

    Bill,

    This is the normal way in Visual Studio 2005 (for C# and VBNet)

    The designer part is not any more in your own code, but as a partial class
    in a seperated file.

    It should not give any problem.

    Cor

    "Bill nguyen" <billn_nospam_p lease@jaco.coms chreef in bericht
    news:OnJrLEFrGH A.4988@TK2MSFTN GP04.phx.gbl...
    Suddenly a new file was added to forms that I created in the last 2 days.
    I created and named a form frmDTDownload.
    In Solution Explorer, now I have
    frmDTNDownload. vb
    frmDTNDownload. Designer.vb
    frmDTNDownload. resx
    >
    frmXXX.Designer .vb is new to me and it caused some weird error about form
    designer not working.
    >
    I did add Microsoft Forms 2.0 Object Library (FM20.DLL) to the project
    hoping I can display some Unicode characters (it didn't work) but then
    removed it afterwards. Is it the cause of the problem?
    Any help to resolve the problem (safely remove the Designer.vb file) is
    greatly appreciated.
    >
    >
    Thanks
    >
    Bill
    >

    Comment

    • Bill Nguyen

      #3
      Re: Extra Designer.vb file in Win Form causing problem

      Thanks Cor.
      I messed up Designer.vb and it got me panic.

      Bill
      "Cor Ligthert [MVP]" <notmyfirstname @planet.nlwrote in message
      news:eJ2JdGJrGH A.1796@TK2MSFTN GP03.phx.gbl...
      Bill,
      >
      This is the normal way in Visual Studio 2005 (for C# and VBNet)
      >
      The designer part is not any more in your own code, but as a partial class
      in a seperated file.
      >
      It should not give any problem.
      >
      Cor
      >
      "Bill nguyen" <billn_nospam_p lease@jaco.coms chreef in bericht
      news:OnJrLEFrGH A.4988@TK2MSFTN GP04.phx.gbl...
      >Suddenly a new file was added to forms that I created in the last 2 days.
      >I created and named a form frmDTDownload.
      >In Solution Explorer, now I have
      >frmDTNDownload .vb
      >frmDTNDownload .Designer.vb
      >frmDTNDownload .resx
      >>
      >frmXXX.Designe r.vb is new to me and it caused some weird error about form
      >designer not working.
      >>
      >I did add Microsoft Forms 2.0 Object Library (FM20.DLL) to the project
      >hoping I can display some Unicode characters (it didn't work) but then
      >removed it afterwards. Is it the cause of the problem?
      >Any help to resolve the problem (safely remove the Designer.vb file) is
      >greatly appreciated.
      >>
      >>
      >Thanks
      >>
      >Bill
      >>
      >
      >

      Comment

      Working...