How to clear ProgressiveToolTip.Image of (ribbon) Button

How to clear ProgressiveToolTip.Image of (ribbon) Button

Maxim-CADman77
Advisor Advisor
203 Views
1 Reply
Message 1 of 2

How to clear ProgressiveToolTip.Image of (ribbon) Button

Maxim-CADman77
Advisor
Advisor

I'm a big fan of the style Inventor team uses for ribbon buttons (all those progressive tooltips with image/video and context help by F1 etc) and I'm doing my best in order UI of my AddIns follow this style.

Sometimes buttons of my AddIns are supposed to be grayed out.
In such case I substitute button description with corresponding comment, and I also want to clear the Image used for the ProgressiveToolTip.

The image is set with code like this:

 <MyButtonDef>.ProgressiveToolTip.Image = PictureDispConverter.ToIPictureDisp(My.Resources.<ImageName>)

 I believe it can be cleared with:

 <MyButtonDef>.ProgressiveToolTip.Image = Nothing

... but for some reason it still shows the initial image.

 

What I'm missing?

Please vote for Inventor-Idea Text Search within Option Names

0 Likes
Accepted solutions (1)
204 Views
1 Reply
Reply (1)
Message 2 of 2

Maxim-CADman77
Advisor
Advisor
Accepted solution

Never mind!
(vbNull instead of Nothing did the trick)

Please vote for Inventor-Idea Text Search within Option Names