-
Nov 9th, 2010, 03:59 PM
#1
Thread Starter
Addicted Member
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
-
Nov 9th, 2010, 04:16 PM
#2
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
-
Nov 10th, 2010, 04:29 AM
#3
Thread Starter
Addicted Member
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.
-
Dec 12th, 2013, 05:27 PM
#4
New Member
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.
-
Dec 12th, 2013, 08:36 PM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|