Results 1 to 5 of 5

Thread: How to add existing form to a project?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2010
    Posts
    226

    How to add existing form to a project?

    Hi
    I have a simple question. i am trying to add an existing form to my project to reuse. From solution explorer Add>>Add Existing Item i select [filename].vb.
    But i can only see the codes not the dialog items. How can i achieve this. i want to see also dialog items.

    Thanks

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    38,988

    Re: How to add existing form to a project?

    You should be able to see both. Are you sure that you are adding the right file? There will be a <form name>.vb file, a <form name>.designer.vb file, and a .resx file. You want to be adding the first one.
    My usual boring signature: Nothing

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2010
    Posts
    226

    Re: How to add existing form to a project?

    many thanks. i have forgotten to copy all of these files into relative folder
    Last edited by algea; Nov 10th, 2010 at 11:39 AM.

  4. #4
    New Member
    Join Date
    Dec 2013
    Posts
    1

    Re: How to add existing form to a project?

    I successfully added a form to my project, however when I run the solution i get a "StackOverflowException was unhandled." error.
    When I step through the start up process repeatedly runs through the initialization of global variables and the Form1 New() until the stack overflows.
    This is the exact same code from another working solution.

    The environment is VB10 solution and has 2 projects.

  5. #5
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: How to add existing form to a project?

    Why revive an ancient thread rather than simply posting your question?

    We'll need a whole lot more detail than this if we're to have any idea of what's going on and why anyway. What code is repeating? How are the 2 projects linked, if at all? What have you defined as the start up form?
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

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