Can\'t get Checked Information on DotNETContextMenu
Here is the code I'm using.
Dim sTMenu As TDotNETContextMenuStrip
Set sTMenu = DotNETContextMenuStrip("Application=THEEXECUTOR.EX E", tpAttachParent)
blah = sTMenu.Object.Items.Item(2).Checked
The Error I'm getting
Run-Time error '438' - Object doesn't support this property or method.
When I do a property check I see the following.
This does show the correct value for whether the Menu Item is Checked.
Re: Can\'t get Checked Information on DotNETContextMenu
Ok, well I finally figured it out. When you do a property check on the Menu it shows items in a 1 based array, but when you are doing it programmatically it is 0 based. The element after the one I was looking at was a seperator, so it didn't have the Checked property, hence why I was getting the error.