locked
Plugin button question RRS feed

  • Question

  • Hey there.

    So yesterday I was asking about attaching the w3wp process in code.
    I finally got it working.

    But now I need help with some other things.

    1) How do I actually get the plugin and install it for other people to use?

    2) I want to make a toggleable button in the Visual Studio toolbar, that when clicked, will sort of indent the button to show that it's in use, and will attach the w3wp process, and when clicked again, will un-indent it, and detach the process. This is the main thing I have to do now and I don't know how to do it. Does a process continually wait for the button to be pressed?

    3) Right now, I put a button on the toolbar by just clicking the add buttons thing. However when the button is clicked, it is then unclickable. I can't click it again. I need to get rid of this and add in the toggleable button. Is there a way to do this through code so that whenever a user installs the plugin, the button is added to the toolbar?

    Would appreciate help with any of these things as I am new to plugins.

    • Moved by Mike Danes Wednesday, July 17, 2013 12:01 PM VS extensions related
    Wednesday, July 17, 2013 10:22 AM

Answers

  • As with all programms, there is making the Programm (coding, compiling). Installing the Programm (even just copying the files to the right place). And running the Programm.
    My guess is you don't know how to do one or more parts of that.

    I would wager that you actually have to tell VS of the existence of the Plugin before you can run it.

    Here is an article about debugging an Add-in during development, it requires proper setting of the Options durign creation:

    http://msdn.microsoft.com/en-us/library/f7fb383x.aspx


    Let's talk about MVVM: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b1a8bf14-4acd-4d77-9df8-bdb95b02dbe2 Please mark post as helpfull and answers respectively.

    • Marked as answer by Ego Jiang Friday, July 26, 2013 9:21 AM
    Saturday, July 20, 2013 5:47 AM

All replies

  • For 2:

    For WPF there is a ToggleButton Class. It behaves more like Checkbox then a Normal Button.

    For WinForms, this article deals with the issue: http://stackoverflow.com/questions/282118/togglebutton-in-c-sharp-winforms

    Let's talk about MVVM: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b1a8bf14-4acd-4d77-9df8-bdb95b02dbe2 Please mark post as helpfull and answers respectively.

    Wednesday, July 17, 2013 11:38 AM
  • All this is Visual Studio specific so I'll move this thread to a more suitable forum.

    It's perhaps worth noting that such an extension appears to already exists: http://visualstudiogallery.msdn.microsoft.com/7d740ee7-344a-4550-a272-b6de0071f42f/

    Wednesday, July 17, 2013 12:00 PM
  • For 2:

    ...

    So how would I get it working for the plugin I'm working on?

    Wednesday, July 17, 2013 2:16 PM
  • ...

    I have to make my own one it was a task I was assigned in work. Any ideas?
    Wednesday, July 17, 2013 2:16 PM
  • Hi,

    Did you create a VS add-in? Can it work?

    Best regards,


    Ego [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, July 18, 2013 8:05 AM
  • Yeah I created it in VS using the normal way of making a plugin.

    No I can't find it in the tools or right click menu to run it

    Thursday, July 18, 2013 8:09 AM
  • As with all programms, there is making the Programm (coding, compiling). Installing the Programm (even just copying the files to the right place). And running the Programm.
    My guess is you don't know how to do one or more parts of that.

    I would wager that you actually have to tell VS of the existence of the Plugin before you can run it.

    Here is an article about debugging an Add-in during development, it requires proper setting of the Options durign creation:

    http://msdn.microsoft.com/en-us/library/f7fb383x.aspx


    Let's talk about MVVM: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b1a8bf14-4acd-4d77-9df8-bdb95b02dbe2 Please mark post as helpfull and answers respectively.

    • Marked as answer by Ego Jiang Friday, July 26, 2013 9:21 AM
    Saturday, July 20, 2013 5:47 AM