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

How to export a user control?

Hi,

I have a user control in one project that I would like to use in another.
I've tried; 'copy' but can't 'paste'; 'save as .vb' but then when I open it
in the other project the code's there but the 'design' for it isn't.

Any help appreciated, thanks.

Paul
Nov 20 '05 #1
5 2704
Paul,

* "Paul Fredlein" <P.********@NOSPAMuq.net.au> scripsit:
I have a user control in one project that I would like to use in another.
I've tried; 'copy' but can't 'paste'; 'save as .vb' but then when I open it
in the other project the code's there but the 'design' for it isn't.


Don't forget to copy the according ".resx" file too!

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
Hi,

But I can't save or copy the "Design" of the control so when I add the two
files to another project there's nothing in "My User Controls" and so can't
add it to my Form design.

I tried right clicking on the control in "My User Controls" but there's no
export or copy... nothing.

Thanks,

Paul
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:c1*************@ID-208219.news.uni-berlin.de...
Paul,

* "Paul Fredlein" <P.********@NOSPAMuq.net.au> scripsit:
I have a user control in one project that I would like to use in another. I've tried; 'copy' but can't 'paste'; 'save as .vb' but then when I open it in the other project the code's there but the 'design' for it isn't.


Don't forget to copy the according ".resx" file too!

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #3
put your usercontrol in a dll and reference that dll from the 2 project

"Paul Fredlein" <P.********@NOSPAMuq.net.au> wrote in message
news:40*********************@uq-127creek-reader-02.brisbane.pipenetworks.com.au...
Hi,

I have a user control in one project that I would like to use in another.
I've tried; 'copy' but can't 'paste'; 'save as .vb' but then when I open it in the other project the code's there but the 'design' for it isn't.

Any help appreciated, thanks.

Paul

Nov 20 '05 #4
Sorry, DLLs suck big time.

To have the ability to export a User Control should be simple thing to do,
if I can't right click on the control then select Export from a pop-up menu
then Microsoft still needs to do a lot of work on VB. This to me, is
fundamental to an IDE.

I'll just have to copy, paste and mess around, thanks M$.

Paul
"Dominique Vandensteen" <domi.vds_insert@tralala_tenforce.com> wrote in
message news:%2****************@TK2MSFTNGP10.phx.gbl...
put your usercontrol in a dll and reference that dll from the 2 project

"Paul Fredlein" <P.********@NOSPAMuq.net.au> wrote in message

news:40*********************@uq-127creek-reader-02.brisbane.pipenetworks.com.au...
Hi,

I have a user control in one project that I would like to use in another. I've tried; 'copy' but can't 'paste'; 'save as .vb' but then when I open

it
in the other project the code's there but the 'design' for it isn't.

Any help appreciated, thanks.

Paul


Nov 20 '05 #5
totaly fantasticly disagree

we are using a lot of dll's here to split up our project
there is absolutely nothing sucking about dll's

what do you find so sucking about the dll's? i'm curious to know

the point of doing that is to have an easy reuseable component
copying the user control is in fact not reusing it but creating a new one
and then you have 2 usercontrols to maintain, with the dll you have only one


"Paul Fredlein" <P.********@NOSPAMuq.net.au> wrote in message
news:40*********************@uq-127creek-reader-02.brisbane.pipenetworks.com.au...
Sorry, DLLs suck big time.

To have the ability to export a User Control should be simple thing to do,
if I can't right click on the control then select Export from a pop-up menu then Microsoft still needs to do a lot of work on VB. This to me, is
fundamental to an IDE.

I'll just have to copy, paste and mess around, thanks M$.

Paul
"Dominique Vandensteen" <domi.vds_insert@tralala_tenforce.com> wrote in
message news:%2****************@TK2MSFTNGP10.phx.gbl...
put your usercontrol in a dll and reference that dll from the 2 project

"Paul Fredlein" <P.********@NOSPAMuq.net.au> wrote in message

news:40*********************@uq-127creek-reader-02.brisbane.pipenetworks.com.au...
Hi,

I have a user control in one project that I would like to use in another. I've tried; 'copy' but can't 'paste'; 'save as .vb' but then when I
open it
in the other project the code's there but the 'design' for it isn't.

Any help appreciated, thanks.

Paul



Nov 20 '05 #6

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

Similar topics

205
by: Jeremy Siek | last post by:
CALL FOR PAPERS/PARTICIPATION C++, Boost, and the Future of C++ Libraries Workshop at OOPSLA October 24-28, 2004 Vancouver, British Columbia, Canada http://tinyurl.com/4n5pf Submissions
5
by: David | last post by:
I am a little confused by DB2 Backup and Export. I used "db2 backup db QAS to /dev/rmt0" backuping 650GB database to a IBM LTO 3581 (1 drive) only 11 hours. But I used "db2 export to /dev/rmt0...
7
by: Pat | last post by:
I would like to send the Print Preview of a MS Access form to a Snapshot file. The form contains an OLE graph. BACKGROUND A snapshot of a report is possible. If I could I would use a report to...
0
by: 詹亚军 | last post by:
can activex control export large data to container by event's para ? I develop a activex control,and want to export large data to container(IE),web page can use javascript to capture the...
3
by: Russ | last post by:
I have a usercontrol that is loaded by a webform. The usercontrol populates a datagrid which users need the capability to export data from the grid to Excel. The problem is that when I attempt to...
7
by: mattmerc | last post by:
Hi all, We have all seen lot of method for exporting datagrids to Excel. I have a slightly different need. I think it should be easy to accomplish but I am not sure how. I would like when a user...
1
by: forumaic | last post by:
Hello, I am trying to export data to excel from datagrid, and I am getting an error: "The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)." ...
1
by: sukumaster | last post by:
hi i have created a windows user control for browsing folders.I want to use this user control in web application.Can i export it? If so how?
2
by: TG | last post by:
Hi! I am trying to export only the visible columns from a datagridview in my windows form in VB 2008. Should't it be no comma after the first row where the headers are? Also should...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...

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.