473,396 Members | 2,151 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How Do I: Add a Form from a control library

hi

i have a control library which contains a couple of custom forms.

how do i add these forms to another project?

i have made a reference to the control library in the project... do i have
to create the form manually?

thanks
graeme
Aug 18 '06 #1
4 1265
What do you mean 'add the form'?

When you are ready to display that form, you would manually create it and
show it.

How else could you do it? How would you want to specify when it should
display?

"graeme g" <gl********@ggmail.comwrote in message
news:e4**************@TK2MSFTNGP05.phx.gbl...
hi

i have a control library which contains a couple of custom forms.

how do i add these forms to another project?

i have made a reference to the control library in the project... do i have
to create the form manually?

thanks
graeme

Aug 18 '06 #2
I mean, in the solution explorer, right clicking on the project name and
selecting "Add New Item..." How do i get my form to appear in that list?

"Marina Levit [MVP]" <so*****@nospam.comwrote in message
news:uj*************@TK2MSFTNGP05.phx.gbl...
What do you mean 'add the form'?

When you are ready to display that form, you would manually create it and
show it.

How else could you do it? How would you want to specify when it should
display?

"graeme g" <gl********@ggmail.comwrote in message
news:e4**************@TK2MSFTNGP05.phx.gbl...
>hi

i have a control library which contains a couple of custom forms.

how do i add these forms to another project?

i have made a reference to the control library in the project... do i
have to create the form manually?

thanks
graeme


Aug 18 '06 #3
Erm, you don't...

Compile your control library (containing SomeFunkyForm) to an assembly.
In your second project, reference that assembly.

You can now either:
a: create an instance of SomeFunkyForm from code (the same as you would if
it was in the current project)
b: (inheritance) create a new inherited form (in the IDE) and select
SomeFunkyForm as a base form

It doesn't appear in the project view because it isn't part of your project
(unless you simply share the source code), and doesn't appear in the toolbox
because it is a form.

Marc
Aug 18 '06 #4
Thanks

I just found that I can create an inherited form to get it to work...
"Marc Gravell" <ma**********@gmail.comwrote in message
news:uZ**************@TK2MSFTNGP02.phx.gbl...
Erm, you don't...

Compile your control library (containing SomeFunkyForm) to an assembly.
In your second project, reference that assembly.

You can now either:
a: create an instance of SomeFunkyForm from code (the same as you would if
it was in the current project)
b: (inheritance) create a new inherited form (in the IDE) and select
SomeFunkyForm as a base form

It doesn't appear in the project view because it isn't part of your
project (unless you simply share the source code), and doesn't appear in
the toolbox because it is a form.

Marc

Aug 18 '06 #5

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

Similar topics

0
by: jphelan | last post by:
I have a subform that works fine until you import it into a new database when it crashes if you try to open it in either disign or form view. The form, "Attendees_Subform" in my application was...
16
by: TD | last post by:
This is the code under a command button - Dim ctl As Control For Each ctl In Me.Controls If ctl.BackColor <> RGB(255, 255, 255) Then ctl.BackColor = RGB(255, 255, 255) End If Next ctl
11
by: Tom | last post by:
Hi all, I posted the same question one week ago in http://communities.microsoft.com/newsgroups/previewFrame.as p? ICP=msdn&sLCID=us&sgroupURL=microsoft.public.dotnet.framewo...
2
by: Tim Marsden | last post by:
Hi, Please excuse me, I am complete ASP novice. I use VB.NET in VS 2003. I am trying to achieve the following. Display a list of items, this list needs to be user specific, so my first...
2
by: Miky | last post by:
Hi, I have the following problem: I have a .CFM web page and I have to populate, from VB, two textboxes on it. I was thinking using sendkeys (even if I don't like it too much) but when I...
7
by: Neo | last post by:
I am trying to create a custom control, & in this control i need to access the form where this control is added. How can i do this. - I tried to accept a new parameter in the constructor of this...
13
by: Lee Newson | last post by:
Hi, I have just written my first application using VB.NET. The app works fine when i am running it within .NET for debugging purposes, however when i try to run the app from the .exe file that...
2
by: jasonhartsoe | last post by:
I'm using Visual Studio 2005 Team Edition....using visual basic. I'm trying to use the webbrowser control. In the webbrowser control I have it got to a page where there is a form. It waits for...
7
by: RichG | last post by:
I want to lock all controls except the buttons on a form. I sometimes need the form to call lockForms(Me). public sub lockControls(frm as form) for each ctrl as control in frm if...
19
by: Coward 9 | last post by:
HI, I saw in an example hello.aspx, there is a <form tagbeing used like <form runat="server> I search all html tag references and could NOT find "runat" attributes for <formtag. which...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
Oralloy
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,...
0
jinu1996
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...
0
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...

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.