<?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><category term='Windows 8'/><category term='Export'/><category term='Access datasheet'/><category term='Office'/><category term='#MVP10'/><category term='Access 14'/><category term='SQL Server'/><category term='Misc'/><category term='Access 2010'/><category term='VB'/><category term='Office 2010'/><category term='Azure'/><category term='Tutorials'/><category term='Upsizing'/><category term='Libraries'/><category term='Windows Phone'/><category term='Ribbon'/><category term='VBA'/><category term='Setup'/><category term='Access 2007'/><category term='Access'/><category term='Jet'/><category term='access field type DAO'/><category term='ActiveX'/><category term='Runtime'/><category term='Error'/><category term='Office 2007'/><category term='#MVP09'/><category term='Code Samples'/><category term='.NET'/><category term='Excel'/><title type='text'>Comments on AccessBlog.net: 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><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/-oT_d4T_EflQ/ToBPAsrJZKI/AAAAAAAAAXM/87jGWx1-U04/s220/AlexGeeksRule1-444-555.JPG'/></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:00.000+04:00</published><updated>2007-05-25T12:47:00.000+04:00</updated><title type='text'>Taking your idea a step further, I found a&lt;br&gt;simp...</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=1180082820000#c4639187201167787544' title=''/><author><name>Neil Ginsberg</name><uri>http://www.blogger.com/profile/01696823945484105209</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></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'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1797322058'/></entry></feed>
