Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

[VB]Updating Buttons in a Visual Studio 2017 Extension

$
0
0

I am working on learning how to write extensions for Visual Studio 2017 (VSIX Projects). At the moment, I have managed to create the toolbar buttons that I need and make them intoOleMenuCommand instead of MenuCommand. However, I want my Button(s) to act like RadioButton(s) would in a UWP app (only one selected at a time). I know that OleMenuCommand has a Checked property, which I am sure is involved in this somehow. But I am not sure where to put the code to do this, how to access the Button(s) in my toolbar, or where to call UpdateCommandUI (which I am guessing I will need). The code on the following page:

https://docs.microsoft.com/en-us/visualstudio/extensibility/updating-the-user-interface?view=vs-2017

was very confusing to me, because it shows a method (UpdateUI), but does not show anywhere to call it from. This is my first time writing an extension or working with a VSIX Project, so please forgive me for asking any obvious questions. Thank you.


Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>