Importing a form into a project

Hello Friends,

I created an application in Visual Basic with Visual Studio 2005 beta. That product is no longer alive. I want to be able to run that application in VB Express. It was apparently not in a project in the beta, or at least VB Express does not recognize that it was. I can copy and paste the code into a VB Express project, but I don't see how to import the form itself. What should I do

moontube



Answer this question

Importing a form into a project

  • Dayne

    Hi,

    Is your problem solved

    Thank you,
    Bhanu.



  • Michael Brandt Lassen

    Hi James,

    Thanks for the tip. I have already succeeded in copying and pasting the code. It is the form itself that I need to carry over. The code refers to text fields on the missing form, so I get compiler errors when I run. Also I need to enter values into the form before running. I would appreciate hearing from anyone who can tell me how to recover my form. It would be a major job to reconstruct it.

    moontube


  • Adam Tybor

    Depending on which beta it was, you may be better off copying & pasting the code into a new project as there were a lot of changes between the betas and the final release code.

    james

    aka:Trucker


  • jonNotTod

    Have you tried the add an existing Item and Point it to your form files.

    Project -> Add Existing Items

    For a form you'll want to add all the files with that Form name, there should be at least 2 but normally three files you need to add.

    Example.
    Form1.Designer.Vb
    Form1.Resx
    Form1.vb

    Add all these to the project and then attempt to open the form in the project. This may work or may not as it was created in a Beta and things may have changed between the beta and the release.

    That may work. Otherwise just recreate you form in Release version and then paste your code into this.


  • Dymatron

    Hello Bhanu,

    My problem is not solved yet. I will try the suggestion in the message that followed your.

    moontube


  • Importing a form into a project