Jump to content

Tab control with ActiveX container


m3nth

Recommended Posts

Just thought I'd post this for general knowledge... I ran into it awhile ago and NI knows it exists.

If:

  • There's an ActiveX container on a tab control
  • The tab with the ActiveX container is selected (ie, the ActiveX container is visible)
  • The Tab control visibility is set from True to False

...then the ActiveX container will remain visible instead of disappearing with the tab control.

If:

  • The tab control visibility is then set from False back to True
  • The user changes to a different tab (ie, the ActiveX container is not visible)
  • The tab control visibility is set from True to False

...then the ActiveX container will remain not visible.

Possible workarounds include:

  • Programmatically changing the active tab to a different page than the one with the ActiveX container before setting the tab visibility to false
  • Setting the ActiveX container visibility to True/False in conjunction with the Tab control visibility

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.