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 2 1225
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******** ******@TK2MSFTN GP10.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
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******** ********@TK2MSF TNGP10.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******** ******@TK2MSFTN GP10.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 > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 controls.
2). I start a new solution and create an Application
3). I add the existing project with my controls to the solution, then
create the reference.
|
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, without having to compile it
seperately before.
An example:
1. In Visual Studio create a new C# Windows Application
|
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 have to migrate the files
everywhere that the executable is installed. Is there a way to add them to a
Visual Studio solution/project so that they are embedded in the application
somehow? If so, how do I access the images when needed?
Thanks,...
|
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 works fine. However, if I
am copying a form, it pulls it in as a module file, not as a form. I have
tried adding the .resx file first, adding the .vb and .resx file at the
same time, or deleting the .resx file, nothing seems to work. I have a...
|
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 form's controls collection but I want to
know that if it is possible to add it to the toolbox like if this component
was in separate project in this solution.
Thanks in advance.
Amin
| |
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 code exists. Sorry about the question, but
I am very new to vb.net and am used to just adding the form to a vb6 project
and automatically having the code added too.
Any help would be greatly appreciated!
Thanks in advance.
|
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 original module. this is NOT
what I expected.
Is there a way to share a module (.vb) among multiple projects?
Thanks
Bill
|
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 insert that information into the table. This is a major problem as it is suppose to use the information to populate several other tables with key information and open another form based on some of that information (in this case project number).
...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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 we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |