Results 1 to 7 of 7

Thread: Same UserControl/Form in 2 different Projects

Threaded View

  1. #1

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    Same UserControl/Form in 2 different Projects

    Let's see the attached zip if you don't understand... the example will clarify itself.

    I have two different projects: "Project1" and "Project2". Both projects have a form which uses an UserControl. Both, the Form and the UserControl are common for both projects. If you open project1.vbp and/or project2.vbp you see'll what I mean.

    However, if you open the project2.vbp you'll realize that VB raises an error: "Class Project1.UserControl1 of control UserControl11 was not a loaded control class."

    The explanation is pretty simple. Form1 has a reference to load the control Project1.UserControl1... but this project's name is Project2, so the usercontrol cannot be found. If I edited the Form1 to load the control Project2.UserControl2, this project2 would start "loading" correctly... but Project1 would start raising a similar error.

    Is there any way to fix this?
    Attached Files Attached Files
    Last edited by Mc Brain; Jan 24th, 2005 at 11:01 AM.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width