Print Page | Close Window

TabControl - Lose the handlig to item content

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=22234
Printed Date: 27 April 2024 at 6:21pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TabControl - Lose the handlig to item content
Posted By: demiurge
Subject: TabControl - Lose the handlig to item content
Date Posted: 12 March 2014 at 10:13am
Hi, 

I'm still a novice at working with the TabControl. 

I am using an Access 2013 database. On a form I have placed a TabControl. In Form_Load I create two TabItems. TabItem1 gets the handle to form 2 and TabItem2 gets the handle to form third. Both I have previously opened in the background. 
Now if I change between the two TabItems, I can select or activate only the controls on the form 3. The controls on form 2 I see, but can not select them. 

What am I doing wrong? 

Here is the source of Form_Load:

Private Sub Form_Load()
   
  On Error Resume Next
   
  Dim xTab As XtremeSuiteControls.TabControl
  Set xTab = Me.tabMain.Object

  xTab.ShowCloseItemButton = xtpTabItemButtonSelected

  DoCmd.OpenForm "Form2", acNormal, , , , acNormal
  DoCmd.OpenForm "Form3", acNormal, , , , acNormal

  xTab.InsertItem xTab.ItemCount, "Form2", Forms("Form2").hWnd, 0
  xTab.Item(xTab.ItemCount - 1).Closable = True

  xTab.InsertItem xTab.ItemCount, "Form3", Forms("Form3").hWnd, 0
  xTab.Item(xTab.ItemCount - 1).Closable = True
    
End Sub

Thank you for your help

Bjoern

----
Xtreme SuitePro ActiveX v16.3.0 (30 Day Trial) ==> If the issue is resolved, we will acquire the entire collection.



-------------
Product: Xtreme Report Control ActiveX 2009 Vol 3 version 13.3.1

Platform: Windows XP (32bit) - SP 3

Language: MS Access 2003




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net