473,513 Members | 2,290 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding an existing form to a project

Hi,

Can anyone tell me how I can add an existing (managed) form into a project,
and have it appear like others (i.e. able to open in the designer)?

Thanks!

Steve
Nov 17 '05 #1
2 1215
When you say the Form 'exists' what do you mean? In my managed
applications, forms are created ala:

Form* myForm = new Form();

myForm->Width = 640;
myForm->Height = 320;
:
:
etc.

So, they don't 'exist' at design time, but only at run time.

If there is a way to add some file or resource that acts like a form that
can be designed in some visual environment during the design phase, I'd like
to hear about this too... :)
"Steve McLellan" <sjm.NOSPAM AT fixerlabs DOT com> wrote in message
news:eI**************@TK2MSFTNGP10.phx.gbl...
Hi,

Can anyone tell me how I can add an existing (managed) form into a project, and have it appear like others (i.e. able to open in the designer)?

Thanks!

Steve

Nov 17 '05 #2
Yeah, my code runs fine, it's just I'd like to be able to use the designer.
Primarily because I'm extremely lazy :-) If you create a new Form (through
'Add New Item') it appears ok - I imagine there's some project manifest or
resource list or something to add things to. Otherwise I'll just copy the
code from the file as it is and recreate the form, though that will angry up
my lazy nature.

Steve

"Peteroid" <pe************@msn.com> wrote in message
news:uP****************@TK2MSFTNGP10.phx.gbl...
When you say the Form 'exists' what do you mean? In my managed
applications, forms are created ala:

Form* myForm = new Form();

myForm->Width = 640;
myForm->Height = 320;
:
:
etc.

So, they don't 'exist' at design time, but only at run time.

If there is a way to add some file or resource that acts like a form that can be designed in some visual environment during the design phase, I'd like to hear about this too... :)
"Steve McLellan" <sjm.NOSPAM AT fixerlabs DOT com> wrote in message
news:eI**************@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> Can anyone tell me how I can add an existing (managed) form into a

project,
> and have it appear like others (i.e. able to open in the designer)?
>
> Thanks!
>
> Steve
>
>


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
290
by: Justin | last post by:
I am having trouble adding some of my existing controls to my toolbox in VS.NET. Here's what is going on: 1). I have an existing project that is a Windows Control Library with a bunch of...
3
3258
by: Helmut Wagensonner | last post by:
Hi, I have created a custom textBox within a C# project. I want to put that custom textBox on a form now. I heard about a way, to place that user control onto a form within the same project,...
2
3463
by: Don Tucker | last post by:
Hello, I have a Windows Application that needs to load multiple image files in response to users clicking buttons. Currently, I just have these images as .jpg files on disk, but I don't want to...
1
5585
by: Christopher W. Douglas | last post by:
I am building a VB.NET application in Visual Studio.NET 2003. I have an existing project with code and forms I want to reuse in this project. If I am copying a module file, then Add Existing Item...
4
8235
by: Amin Sobati | last post by:
Hi, I have added a component class that inherits System.windows.Forms.TextBox. This component is in the same project as my windows application (executable). I could instantiate it and add to...
4
2153
by: Mark | last post by:
Hello, When I add existing forms to a project how do I get the form code added and working too? If I load the form and .vb file the code is displayed, but the form does not recognize that the...
4
10441
by: Bill Nguyen | last post by:
I would like to include a module from another project. When I added existing item, VS copied the module to the current project's folder so that whatever I did to this module doesn't reflect in the...
1
2002
damonreid
by: damonreid | last post by:
Access 2003 Microsoft Windows XP Pro Hey, I am currently pulling my hair out here. I have a Form for adding new projects to a database, the only problem is that when I close the form it doesn't...
0
7269
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7177
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7542
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4756
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3248
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3237
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1611
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.