<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-7176045.post115815375111098782..comments</id><updated>2007-05-25T12:47:25.007+04:00</updated><title type='text'>Comments on Alex &amp; Access: ActiveX controls on Tab control page</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://accessblog.net/feeds/115815375111098782/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7176045/115815375111098782/comments/default'/><link rel='alternate' type='text/html' href='http://accessblog.net/2006/09/activex-controls-on-tab-control-page.html'/><author><name>Alex Dybenko</name><uri>http://www.blogger.com/profile/16954512620659022712</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7176045.post-4639187201167787544</id><published>2007-05-25T12:47:25.007+04:00</published><updated>2007-05-25T12:47:25.007+04:00</updated><title type='text'>Taking your idea a step further, I found asimpler ...</title><content type='html'>Taking your idea a step further, I found a&lt;BR/&gt;simpler way to avoid the problem. Simply make all controls on all pages of&lt;BR/&gt;the tab control invisible, then run code from the tab control's On Change&lt;BR/&gt;event to make only the controls on the current page visible (also need to&lt;BR/&gt;run it from the form On Open or On Current event so that the controls are&lt;BR/&gt;initially displayed).&lt;BR/&gt;&lt;BR/&gt;Below is the code I came up with (for a tab control named "tabMain"). Seems&lt;BR/&gt;to resolve the problem, and allows you to keep all your controls on the tab&lt;BR/&gt;control, instead of moving them off.&lt;BR/&gt;&lt;BR/&gt;    Dim ctl As Control&lt;BR/&gt;    Dim pg As Page&lt;BR/&gt;    Dim blnVisible As Boolean&lt;BR/&gt;&lt;BR/&gt;    For Each pg In Me.tabMain.Pages&lt;BR/&gt;        blnVisible = (pg.PageIndex = Me.tabMain)&lt;BR/&gt;        For Each ctl In pg.Controls&lt;BR/&gt;            ctl.Visible = blnVisible&lt;BR/&gt;        Next&lt;BR/&gt;    Next</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7176045/115815375111098782/comments/default/4639187201167787544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7176045/115815375111098782/comments/default/4639187201167787544'/><link rel='alternate' type='text/html' href='http://accessblog.net/2006/09/activex-controls-on-tab-control-page.html?showComment=1180082845007#c4639187201167787544' title=''/><author><name>Neil Ginsberg</name><uri>http://www.blogger.com/profile/01696823945484105209</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://accessblog.net/2006/09/activex-controls-on-tab-control-page.html' ref='tag:blogger.com,1999:blog-7176045.post-115815375111098782' source='http://www.blogger.com/feeds/7176045/posts/default/115815375111098782' type='text/html'/></entry></feed>