0

I wrote an Add-in for the VBA-Editor of MS Access in C# How to write a Add-in for the development enviroment: "Microsoft Visual Basic for Applications"

I already created a toolbar like this:

var toolbar = m_VBE.CommandBars.Add(RadToolbarCaption, MsoBarPosition.msoBarTop, System.Type.Missing, true);

Now I need a CheckBox or a PushButton (a control which represents a true/false state) in the toolbar

But it seems like there is no checkBox in MsoControlType and I did not find a way to make a Button 'pushable'.

Is there a way to add a CheckBox (or another control which provides the same functionality) to the menubar?

June7
  • 19,874
  • 8
  • 24
  • 34
Gener4tor
  • 414
  • 3
  • 12
  • 40
  • 1
    I very much doubt. Probably have to open a dialog form such as you get with the app Options. – June7 Feb 18 '21 at 19:33

1 Answers1

0

Ok...it seems like there is no natural way to do this.

So I decided to use a standard button where I toggle the Icon/Text after clicking. This will simulate a push button.

Gener4tor
  • 414
  • 3
  • 12
  • 40