Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - TabControl - Lose the handlig to item content
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

TabControl - Lose the handlig to item content

 Post Reply Post Reply
Author
Message
demiurge View Drop Down
Newbie
Newbie


Joined: 25 March 2009
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote demiurge Quote  Post ReplyReply Direct Link To This Post Topic: TabControl - Lose the handlig to item content
    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

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.