Print Page | Close Window

Type mismatch error when using tabcontrol

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=5304
Printed Date: 17 November 2024 at 5:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Type mismatch error when using tabcontrol
Posted By: Sampath Kumar S
Subject: Type mismatch error when using tabcontrol
Date Posted: 17 October 2006 at 2:48am
Having problem in vb6 for withevent setting.
 
 
Private WithEvents TabStrip   As XtremeSuiteControls.TabControl
 
private sub form_load()
 
'dynamically adding usercontrol into the form and setting the tabcontrol to tabstrip for eg.
 
  set tabstrip = usercontrol.controls(0) 'which is a XtremeSuiteControls.TabControl.
 
end sub
 
Need help to solve this issue.
 



Replies:
Posted By: Oleg
Date Posted: 18 October 2006 at 2:39am
Hello,
 
it wortks for me.
 
code of UserControl:
 
Property Get TabControl() As Control
Set TabControl = TabControl1
End Property
 
code of Form:
 
Private WithEvents TabStrip   As XtremeSuiteControls.TabControl
Private Sub Form_Load()
Set TabStrip = UserControl11.TabControl
End Sub


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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