Forum Discussion

Test56's avatar
Test56
Contributor
14 years ago

RightClick on a VB Tab

I want to do a Right Click on each Tab of a TabStrip. The tab is a VB object. We have a action called "ClickTab(<Tab Name>)" to do a single click on each Tab. Do we have something similar to do a Right Click on each tab ?

6 Replies

  • Any guys have any solution or workaround for this ? I tried to find out bounds related to tabs but couldnt. As we have different properties for Buttons of toolbar like wButtonID, do we have anything for Tabs.
  • Any guys have any solution or workaround for this ? I tried to find out bounds related to tabs but couldnt. As we have different properties for Buttons of toolbar like wButtonID, do we have anything for Tabs.
  • mijex71989's avatar
    mijex71989
    Occasional Contributor
    Try using methods of TabStrip.Tabs.Item(index) or something like that. It is possible to get access to a single tab with this property. Some methods like ClickR. Or else, click(X, Y) where coordinates are preliminarily calculated
  • Thanks for your reply but unfortunately this didnt work. Do you have any other suggetions ?

  • Hi Rajat,





    Try enabling MSAA for the TabStripWndClass window class name in your project. To learn how to do this, refer to the Project Properties - MSAA Options help topic.





    Then, you should be able to right-click a single tab:







    TabStrip.PageTab("Tab1").ClickR