Distributing a User Control (Windows Form Control Library)How to add a Custom Windows Forms Control into Visual Studio ToolboxHow do I exit a WPF application programmatically?The Web Application Project […] is configured to use IIS. The Web server […] could not be found. How to make custom control DLL which can be added onto toolbox?ReSharper “Cannot resolve symbol” even when project buildsadding user control to toolbox using class LibraryWhy not inherit from List<T>?Windows Phone 8.1 custom controlsMy UserControl is work on the same project but not on other when try to import its DLLVSIX solution says “A project with an Output Type of Class Library cannot be started” when attempting to start

Does Ubuntu reduces battery life?

Is SecureRandom.ints() secure?

Why was the LRV's speed gauge displaying metric units?

Composing fill in the blanks

How can I kill my goat?

Should I intervene when a colleague in a different department makes students run laps as part of their grade?

What would the United Kingdom's "optimal" Brexit deal look like?

90s/2000s TV show : man uses government time machine to fix national problems

How do I make my photos have more impact?

How can Paypal know my card is being used in another account?

Why does Canada require bilingualism in a lot of federal government posts?

How does the Thief's Fast Hands feature interact with mundane and magical shields?

How do I find the FamilyGUID of an exsting database

Why did Windows 95 crash the whole system but newer Windows only crashed programs?

8086 stack segment and avoiding overflow in interrupts

Was Donald Trump at ground zero helping out on 9-11?

To find islands of 1 and 0 in matrix

What are the closest international airports in different countries?

What force enables us to walk? Friction or normal reaction?

What is the reason for cards stating "Until end of turn, you don't lose this mana as steps and phases end"?

What are the cons of stateless password generators?

Would people understand me speaking German all over Europe?

Complaints from (junior) developers against solution architects: how can we show the benefits of our work and improve relationships?

Is it unprofessional to mention your cover letter and resume are best viewed in Chrome?



Distributing a User Control (Windows Form Control Library)


How to add a Custom Windows Forms Control into Visual Studio ToolboxHow do I exit a WPF application programmatically?The Web Application Project […] is configured to use IIS. The Web server […] could not be found. How to make custom control DLL which can be added onto toolbox?ReSharper “Cannot resolve symbol” even when project buildsadding user control to toolbox using class LibraryWhy not inherit from List<T>?Windows Phone 8.1 custom controlsMy UserControl is work on the same project but not on other when try to import its DLLVSIX solution says “A project with an Output Type of Class Library cannot be started” when attempting to start






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I have made a user control for the other programmers here, starting with the "Windows Forms Control Library" template - it is my understanding that this is the approach one is supposed to take when creating a user control. It works fine on my machine, I can add it to the toolbar just by going to the toolbar and selecting "Choose Items". No problems, it's added and I can use it.



I am trying to give it to another developer here. It's early days in the development process right now, and just to get something going, we have access to a shared directory. He's compiled the source himself and tried to add the control to his toolbox. When he tries this, all he gets in the message "There are no components in [my control] that can be placed on the toolbar".



I have found information on distributing user controls over the web, but we want these controls kept in-house. I've got something called "vsix" installed/updated on my machine, but when I "Export" it, I just get a zip file containing the files he already has. I've tried variations on a search for things like "visual studio 2017 distribute user control" but it keeps coming back to setting up web controls or "use vsix", which I just can't make heads or tails of.



I saw in How to add a Custom Windows Forms Control into Visual Studio Toolbox this answer:
"You can copy the dll of your control to a permanent location. Then right-click on ToolBox, for example on the general tab, then click Choose Items ... then in Choose Toolbox Items window in.Net Framework Components Tab, click Browse... button and open the dll of your control. Then in the components list, check the control and click OK button. The control will appear under the selected tab. You also can add your own tab simply by right click and choose Add Tab."
-- but as soon as we click on it, that's when we get the "There are no components..." message.



So, how do I take a user control I've created on my machine and get it to the guys in the cubes around me?



Is there an "explain it to me like I'm five" version of "Give someone the control you wrote"?










share|improve this question


























  • I did this a long time ago, so the details may have changed, but you need to add a reference to the registry with the path to the folder that contains your assembly(ies). Something like [HKLM|HKCU]SOFTWAREMicrosoft.NETFrameworkv4.0.30319AssemblyFoldersExMyFolder. Check the registry on your dev machine and you'll no doubt find some examples. Typically you do this by providing an msi installer that installs your controls and creates the necessary registry entries.

    – Joe
    Mar 26 at 20:32


















1















I have made a user control for the other programmers here, starting with the "Windows Forms Control Library" template - it is my understanding that this is the approach one is supposed to take when creating a user control. It works fine on my machine, I can add it to the toolbar just by going to the toolbar and selecting "Choose Items". No problems, it's added and I can use it.



I am trying to give it to another developer here. It's early days in the development process right now, and just to get something going, we have access to a shared directory. He's compiled the source himself and tried to add the control to his toolbox. When he tries this, all he gets in the message "There are no components in [my control] that can be placed on the toolbar".



I have found information on distributing user controls over the web, but we want these controls kept in-house. I've got something called "vsix" installed/updated on my machine, but when I "Export" it, I just get a zip file containing the files he already has. I've tried variations on a search for things like "visual studio 2017 distribute user control" but it keeps coming back to setting up web controls or "use vsix", which I just can't make heads or tails of.



I saw in How to add a Custom Windows Forms Control into Visual Studio Toolbox this answer:
"You can copy the dll of your control to a permanent location. Then right-click on ToolBox, for example on the general tab, then click Choose Items ... then in Choose Toolbox Items window in.Net Framework Components Tab, click Browse... button and open the dll of your control. Then in the components list, check the control and click OK button. The control will appear under the selected tab. You also can add your own tab simply by right click and choose Add Tab."
-- but as soon as we click on it, that's when we get the "There are no components..." message.



So, how do I take a user control I've created on my machine and get it to the guys in the cubes around me?



Is there an "explain it to me like I'm five" version of "Give someone the control you wrote"?










share|improve this question


























  • I did this a long time ago, so the details may have changed, but you need to add a reference to the registry with the path to the folder that contains your assembly(ies). Something like [HKLM|HKCU]SOFTWAREMicrosoft.NETFrameworkv4.0.30319AssemblyFoldersExMyFolder. Check the registry on your dev machine and you'll no doubt find some examples. Typically you do this by providing an msi installer that installs your controls and creates the necessary registry entries.

    – Joe
    Mar 26 at 20:32














1












1








1








I have made a user control for the other programmers here, starting with the "Windows Forms Control Library" template - it is my understanding that this is the approach one is supposed to take when creating a user control. It works fine on my machine, I can add it to the toolbar just by going to the toolbar and selecting "Choose Items". No problems, it's added and I can use it.



I am trying to give it to another developer here. It's early days in the development process right now, and just to get something going, we have access to a shared directory. He's compiled the source himself and tried to add the control to his toolbox. When he tries this, all he gets in the message "There are no components in [my control] that can be placed on the toolbar".



I have found information on distributing user controls over the web, but we want these controls kept in-house. I've got something called "vsix" installed/updated on my machine, but when I "Export" it, I just get a zip file containing the files he already has. I've tried variations on a search for things like "visual studio 2017 distribute user control" but it keeps coming back to setting up web controls or "use vsix", which I just can't make heads or tails of.



I saw in How to add a Custom Windows Forms Control into Visual Studio Toolbox this answer:
"You can copy the dll of your control to a permanent location. Then right-click on ToolBox, for example on the general tab, then click Choose Items ... then in Choose Toolbox Items window in.Net Framework Components Tab, click Browse... button and open the dll of your control. Then in the components list, check the control and click OK button. The control will appear under the selected tab. You also can add your own tab simply by right click and choose Add Tab."
-- but as soon as we click on it, that's when we get the "There are no components..." message.



So, how do I take a user control I've created on my machine and get it to the guys in the cubes around me?



Is there an "explain it to me like I'm five" version of "Give someone the control you wrote"?










share|improve this question
















I have made a user control for the other programmers here, starting with the "Windows Forms Control Library" template - it is my understanding that this is the approach one is supposed to take when creating a user control. It works fine on my machine, I can add it to the toolbar just by going to the toolbar and selecting "Choose Items". No problems, it's added and I can use it.



I am trying to give it to another developer here. It's early days in the development process right now, and just to get something going, we have access to a shared directory. He's compiled the source himself and tried to add the control to his toolbox. When he tries this, all he gets in the message "There are no components in [my control] that can be placed on the toolbar".



I have found information on distributing user controls over the web, but we want these controls kept in-house. I've got something called "vsix" installed/updated on my machine, but when I "Export" it, I just get a zip file containing the files he already has. I've tried variations on a search for things like "visual studio 2017 distribute user control" but it keeps coming back to setting up web controls or "use vsix", which I just can't make heads or tails of.



I saw in How to add a Custom Windows Forms Control into Visual Studio Toolbox this answer:
"You can copy the dll of your control to a permanent location. Then right-click on ToolBox, for example on the general tab, then click Choose Items ... then in Choose Toolbox Items window in.Net Framework Components Tab, click Browse... button and open the dll of your control. Then in the components list, check the control and click OK button. The control will appear under the selected tab. You also can add your own tab simply by right click and choose Add Tab."
-- but as soon as we click on it, that's when we get the "There are no components..." message.



So, how do I take a user control I've created on my machine and get it to the guys in the cubes around me?



Is there an "explain it to me like I'm five" version of "Give someone the control you wrote"?







c# controls vsix






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 26 at 20:23









Ashkan Mobayen Khiabani

24k19 gold badges71 silver badges128 bronze badges




24k19 gold badges71 silver badges128 bronze badges










asked Mar 26 at 19:43









E DevittE Devitt

197 bronze badges




197 bronze badges















  • I did this a long time ago, so the details may have changed, but you need to add a reference to the registry with the path to the folder that contains your assembly(ies). Something like [HKLM|HKCU]SOFTWAREMicrosoft.NETFrameworkv4.0.30319AssemblyFoldersExMyFolder. Check the registry on your dev machine and you'll no doubt find some examples. Typically you do this by providing an msi installer that installs your controls and creates the necessary registry entries.

    – Joe
    Mar 26 at 20:32


















  • I did this a long time ago, so the details may have changed, but you need to add a reference to the registry with the path to the folder that contains your assembly(ies). Something like [HKLM|HKCU]SOFTWAREMicrosoft.NETFrameworkv4.0.30319AssemblyFoldersExMyFolder. Check the registry on your dev machine and you'll no doubt find some examples. Typically you do this by providing an msi installer that installs your controls and creates the necessary registry entries.

    – Joe
    Mar 26 at 20:32

















I did this a long time ago, so the details may have changed, but you need to add a reference to the registry with the path to the folder that contains your assembly(ies). Something like [HKLM|HKCU]SOFTWAREMicrosoft.NETFrameworkv4.0.30319AssemblyFoldersExMyFolder. Check the registry on your dev machine and you'll no doubt find some examples. Typically you do this by providing an msi installer that installs your controls and creates the necessary registry entries.

– Joe
Mar 26 at 20:32






I did this a long time ago, so the details may have changed, but you need to add a reference to the registry with the path to the folder that contains your assembly(ies). Something like [HKLM|HKCU]SOFTWAREMicrosoft.NETFrameworkv4.0.30319AssemblyFoldersExMyFolder. Check the registry on your dev machine and you'll no doubt find some examples. Typically you do this by providing an msi installer that installs your controls and creates the necessary registry entries.

– Joe
Mar 26 at 20:32













1 Answer
1






active

oldest

votes


















0














Thank you Ashkan! It turns out that there was just some sort of problem on the target computer. I did eventually move everything over to a Class Library for ease of deployment, but two other people here were able to use what I had without any problems. So, in the end, we updated and reset some things on the target computer and switched to a Class Library - and the problem was solved!






share|improve this answer
























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55365129%2fdistributing-a-user-control-windows-form-control-library%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Thank you Ashkan! It turns out that there was just some sort of problem on the target computer. I did eventually move everything over to a Class Library for ease of deployment, but two other people here were able to use what I had without any problems. So, in the end, we updated and reset some things on the target computer and switched to a Class Library - and the problem was solved!






    share|improve this answer





























      0














      Thank you Ashkan! It turns out that there was just some sort of problem on the target computer. I did eventually move everything over to a Class Library for ease of deployment, but two other people here were able to use what I had without any problems. So, in the end, we updated and reset some things on the target computer and switched to a Class Library - and the problem was solved!






      share|improve this answer



























        0












        0








        0







        Thank you Ashkan! It turns out that there was just some sort of problem on the target computer. I did eventually move everything over to a Class Library for ease of deployment, but two other people here were able to use what I had without any problems. So, in the end, we updated and reset some things on the target computer and switched to a Class Library - and the problem was solved!






        share|improve this answer













        Thank you Ashkan! It turns out that there was just some sort of problem on the target computer. I did eventually move everything over to a Class Library for ease of deployment, but two other people here were able to use what I had without any problems. So, in the end, we updated and reset some things on the target computer and switched to a Class Library - and the problem was solved!







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 28 at 20:26









        E DevittE Devitt

        197 bronze badges




        197 bronze badges



















            Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







            Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55365129%2fdistributing-a-user-control-windows-form-control-library%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript