473,408 Members | 1,786 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,408 software developers and data experts.

Building multiple UserControls in a single assambly

Hello

Right now I have 3 projects to my solution... 2 user controls and a tester
I need to embed both controls in a third one, and the final build to output
only one assambly..How can I do that?

Crirus
Nov 20 '05 #1
17 1193
Hi Crirus,

Easy.

Create a new UC project. Open the toolbox. If you haven't already added
your other UCs to it, right-click and go for it. Then drag them both onto the
new UC.

Regards,
Fergus
Nov 20 '05 #2
And that assure me that dll's that make the 2 initial UC's will be compiled
embedded in the 3'th UC?
Right now, each project build it's own dll
"Fergus Cooney" <fi******@tesco.net> wrote in message
news:OW**************@TK2MSFTNGP11.phx.gbl...
Hi Crirus,

Easy.

Create a new UC project. Open the toolbox. If you haven't already added your other UCs to it, right-click and go for it. Then drag them both onto the new UC.

Regards,
Fergus

Nov 20 '05 #3
Hi Crirus,

Sorry, I missed that bit about the assembly.

I've got a test project which has a Form, an outer container UC, an inner
container UC and a browser UC inside that. I dragged the files from each into
the Form's project and removed the UC Projects (without saving when it asked).
Then I deleted all the dlls.
..
When I rebuilt the Solution it complained at the points where I was
declaring and instantiating the UCs and so I deleted the namespace references
which were now redundant.

With them all cleared it worked - one exe file and no dlls.

Regards,
Fergus
Nov 20 '05 #4
* "Crirus" <Cr****@datagroup.ro> scripsit:
And that assure me that dll's that make the 2 initial UC's will be compiled
embedded in the 3'th UC?
Right now, each project build it's own dll


You will get three separate DLLs.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #5
* "Crirus" <Cr****@datagroup.ro> scripsit:
Right now I have 3 projects to my solution... 2 user controls and a tester
I need to embed both controls in a third one, and the final build to output
only one assambly..How can I do that?


<http://www.gotdotnet.com/community/usersamples/Default.aspx?query=illink>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #6
The only way?
How about if I make a single project and add all UC to it?
Can I make a reference of on in the other then? Like picking from ToolBox
and drawing on the UC's window?

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bm************@ID-208219.news.uni-berlin.de...
* "Crirus" <Cr****@datagroup.ro> scripsit:
Right now I have 3 projects to my solution... 2 user controls and a tester I need to embed both controls in a third one, and the final build to output only one assambly..How can I do that?


<http://www.gotdotnet.com/community/usersamples/Default.aspx?query=illink>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Nov 20 '05 #7
* "Crirus" <Cr****@datagroup.ro> scripsit:
The only way?


If you want a single file, yes. You must link the files together after
they are compiled.

- or -

You add the usercontrols to the EXE project directly and compile it.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #8

hmm, there is no exe involved...only a base UC that contain others... all
embedded in IE..that's why I need only one file with them

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bm************@ID-208219.news.uni-berlin.de...
* "Crirus" <Cr****@datagroup.ro> scripsit:
The only way?


If you want a single file, yes. You must link the files together after
they are compiled.

- or -

You add the usercontrols to the EXE project directly and compile it.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Nov 20 '05 #9
Hi Crirus,

Did you miss my last post? - I was reporting how I achieved exactly that.

Regards,
Fergus
Nov 20 '05 #10
Hi Fergus,
I dont have an exe.... only UC's
So, if I make a single project with all that UC's inside, can I draw one
onto the other's window somehow?
"Fergus Cooney" <fi******@tesco.net> wrote in message
news:ek**************@tk2msftngp13.phx.gbl...
Hi Crirus,

Did you miss my last post? - I was reporting how I achieved exactly that.
Regards,
Fergus

Nov 20 '05 #11
In VB 6 if I add multiple UC to the same project I can see them in ToolBox
and use them as a UC, on the other UC
How can this be achieved in NET?
"Fergus Cooney" <fi******@tesco.net> wrote in message
news:ek**************@tk2msftngp13.phx.gbl...
Hi Crirus,

Did you miss my last post? - I was reporting how I achieved exactly that.
Regards,
Fergus

Nov 20 '05 #12
Hi Crirus,

I only now what I know because I tried it in response to your query!

Sure, I pulled them all into the same exe. But I reckon I could have
stopped one level shorter and pulled all my UCs into one dll.

I reckon that the outermost will be the one that appears in the toolbox.
But then it may complain at having two or more UCs in one package.

It's just an avenue for exploration. ;-)

Regards,
Fergus
Nov 20 '05 #13

So there is no way to use UC's functionality only as a helper inside to a
UC?
That's make me angry ....:[

I'd like the old feature of VB 6 back... I really need one single dll from a
UC that act as a container for another UC's designed by me...
I need the window of that inner uc's and the mouse events

Crirus
"Fergus Cooney" <fi******@tesco.net> wrote in message
news:OG****************@tk2msftngp13.phx.gbl...
Hi Crirus,

I only now what I know because I tried it in response to your query!

Sure, I pulled them all into the same exe. But I reckon I could have
stopped one level shorter and pulled all my UCs into one dll.

I reckon that the outermost will be the one that appears in the toolbox. But then it may complain at having two or more UCs in one package.

It's just an avenue for exploration. ;-)

Regards,
Fergus

Nov 20 '05 #14
Hi Crirus,

~~ So there is no way to use UC's functionality only as
~~ a helper inside to a UC?

I'm not saying that. I'm saying that it you <can> get them into a single
dll but <maybe> not onto the ToolBox. I haven't done it but I'm suggesting it
as something for you to explore.

~~ That's make me angry ....:[

Lol. Hold on a sec first. Have you tried it yet? If you try it and finds
it doesn't work, <then> you can get angry - plenty angry! ;-)

But then, even if you can't get the inner UC on the TooBox, you should be
able to get it onto your Form using code. Just a bit of extra work. All is not
lost yet.

Good luck.

Regards,
Fergus
Nov 20 '05 #15
Hi
I tried...I never post a question before getting stuck or when I still have
a clue :)
I added 3 UC's to the same project but I cant see them In ToolBox...how to
add then by code as window into my UC?
I tried to full the IDE designer with a NET control and replace then with
mine in source, but they write resx file as well so...not a solution

quite mad >:{
Crirus

"Fergus Cooney" <fi******@tesco.net> wrote in message
news:Op**************@TK2MSFTNGP09.phx.gbl...
Hi Crirus,

~~ So there is no way to use UC's functionality only as
~~ a helper inside to a UC?

I'm not saying that. I'm saying that it you <can> get them into a single dll but <maybe> not onto the ToolBox. I haven't done it but I'm suggesting it as something for you to explore.

~~ That's make me angry ....:[

Lol. Hold on a sec first. Have you tried it yet? If you try it and finds it doesn't work, <then> you can get angry - plenty angry! ;-)

But then, even if you can't get the inner UC on the TooBox, you should be able to get it onto your Form using code. Just a bit of extra work. All is not lost yet.

Good luck.

Regards,
Fergus

Nov 20 '05 #16
Hi again,
and for the lst time in this matter!

My very foult!!!

There is a tab on ToolBox named "My User Controls". there are grouped all
"My Custom Controls"
Is'nt this funny?

my appologise,

Crirus

"Crirus" <Cr****@hotmail.com> wrote in message
news:Ox**************@tk2msftngp13.phx.gbl...
Hi
I tried...I never post a question before getting stuck or when I still have a clue :)
I added 3 UC's to the same project but I cant see them In ToolBox...how to
add then by code as window into my UC?
I tried to full the IDE designer with a NET control and replace then with
mine in source, but they write resx file as well so...not a solution

quite mad >:{
Crirus

"Fergus Cooney" <fi******@tesco.net> wrote in message
news:Op**************@TK2MSFTNGP09.phx.gbl...
Hi Crirus,

~~ So there is no way to use UC's functionality only as
~~ a helper inside to a UC?

I'm not saying that. I'm saying that it you <can> get them into a single
dll but <maybe> not onto the ToolBox. I haven't done it but I'm

suggesting it
as something for you to explore.

~~ That's make me angry ....:[

Lol. Hold on a sec first. Have you tried it yet? If you try it and finds
it doesn't work, <then> you can get angry - plenty angry! ;-)

But then, even if you can't get the inner UC on the TooBox, you

should be
able to get it onto your Form using code. Just a bit of extra work. All
is not
lost yet.

Good luck.

Regards,
Fergus


Nov 20 '05 #17
Hi Crirus,

Funny? ROFL, Yep!!

And very good news too :-))

See you in some different threads...

Regards,
Fergus

ps. Fingers crossed that they are the latest version and not some left-overs
from previous experiments!
Nov 20 '05 #18

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

Similar topics

0
by: PatchFactory Support | last post by:
Description: Professional and easy-to-use patch building environment that can help you to create instant patch packages for software and file updating. Generated patch packages are small size...
1
by: Asim Jalis | last post by:
Building a Single Assembly DLL with C# and C++ Code I am trying to create a single assembly composed of managed C++ and C# code, and I want to do this on the command line. I have confirmed...
0
by: Crirus | last post by:
I have a application, embedded in IE (html assambly). That aplication need to connect back to the server in order to get some data. What are conditions to succeed without requesting any special...
10
by: eswanson | last post by:
I have broken up my web site into smaller web site projects. When I look at the precompiled files, it always has the virtual directory in them ie: <preserve resultType="3"...
1
by: Jav | last post by:
Using Asp.Net 2.0 I need to acquire rather large amounts of data from the user in my Web App. I have created UserControls to handle different aspects of this data. Placing these UserControls on...
9
by: Gummy | last post by:
Hello, I created a user control that has a ListBox and a RadioButtonList (and other stuff). The idea is that I put the user control on the ASPX page multiple times and each user control will...
6
by: Bob Alston | last post by:
Looking for someone with experience building apps with multiple instances of forms open. I am building an app for a nonprofit organizations case workers. They provide services to the elderly. ...
2
by: thomson | last post by:
Hi All, i have a user control with a textbox, required vield validator and a Button Control , I have placed the usercontrol three times on a single page, when i run this, if i click a single...
1
by: alqui | last post by:
Hi, I'm actually trying to resolve a simple problem. I'm trying to build my Web site. The structure of the Web site looks like that : /Element /Element/App_Code /Element/Admin...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
agi2029
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,...
0
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
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...

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.