Programatix,
| To put the
| WinForm into a namespace, I need to open the 2 files and enclose the class
| in the namespace.
|
| So, the question is, is there any easier solution?
None that I know of...
One possibility would be to move all the forms into their own project, that
has the namespace you like. However depending on the project that may be
over kill...
I would be curious how many beginner developers put individual forms in a
namespace. As I would consider it something more advanced developers would
do...
--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley -
http://www.tsbradley.net
"Programati x" <N$************ *********@msn.c om> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
| I'm sorry to say that I don't understand your solution.
|
| In VS 2003, code created by the Designer is generated into 1 file. Let's
say
| I added a WinForm. To put the new WinForm into a namespace, I just view
the
| code and enclose the whole class with the namespace I want. But in VS
2005,
| code created by the Designer is seperated into 2 files (name ?.vb and
| ?.designer.vb). Each contain the partial code for the class. To put the
| WinForm into a namespace, I need to open the 2 files and enclose the class
| in the namespace.
|
| So, the question is, is there any easier solution?
|
| "Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote in message
| news:dl******** **@yarrow.open. ac.uk...
| > "Programati x" <N$************ *********@msn.c om> wrote in message
| > news:OS******** ******@tk2msftn gp13.phx.gbl...
| >
| >> The question is, is there an efficient way to add any window
| >> forms created into a namespace?
| >
| > Change the Project Template (and accompanying script) to do
| > what you need. It /does/ take a bit of figuring out, not least
| > because the script's in a weakly-typed language so it's difficult
| > to know jsut which Classes you're actually playing with, but if
| > you're doing lots of this, I'd say it's /well/ worth the mileage.
| >
| > That said, I've only done it with VS'2003 to date - yet to try it
| > with '2005. :-)
| >
| > HTH,
| > Phill W.
| >
| >
|
|