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
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.
Re: How to add existing form to a project?
many thanks. i have forgotten to copy all of these files into relative folder
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.
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?