Print Page | Close Window

control names

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Active-X COM Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=11324
Printed Date: 21 November 2024 at 7:40pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: control names
Posted By: fc41
Subject: control names
Date Posted: 07 July 2008 at 5:23am
i need to change cj control names.
cos combobox and checkbox duplicate vb control names.
is it possible to change?



Replies:
Posted By: ijwelch
Date Posted: 07 July 2008 at 5:51am
I don't think you can.

You don't need to though. e.g.

Dim obj1 As XtremeSuiteControls.ComboBox
Dim obj2 As VB.ComboBox



Posted By: fc41
Date Posted: 07 July 2008 at 5:54am
u r the man 

-------------
Vb6Sp6


Posted By: Aaron
Date Posted: 07 July 2008 at 7:01am
Originally posted by ijwelch ijwelch wrote:

I don't think you can.

You don't need to though. e.g.

Dim obj1 As XtremeSuiteControls.ComboBox
Dim obj2 As VB.ComboBox

 
 
Hi,
 
There are a few posts about this and why you have to add the library name now?
 
http://forum.codejock.com/forum_posts.asp?TID=10931 - http://forum.codejock.com/forum_posts.asp?TID=10931
http://forum.codejock.com/forum_posts.asp?TID=10990 - http://forum.codejock.com/forum_posts.asp?TID=10990
 
Can someone explain to me why...


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: Lodep59
Date Posted: 07 July 2008 at 9:34am
Hi Aaron,
 
Did you ever try to add a CJ Treeview on a project with existing MSComctl components ?
 
If you wrote some subs like this :
 
Public Sub FillTreeView(TV As TreeView)
 
for vb, "TV" is common control treview and not a CJ Treeview. Attributes and members are not the same and on compilation, vb says "Type Mismatch" (think it's the error message in english, error code = 13).
 
In this case, you have to change the declaration :
 
Public Sub FillTreeView(TV As XtremeSuiteControls.TreeView)
 
That's why, for me, it's very important to add the Library Name before the control type on the code.
 
Hope this help (and that i understand your question )
 
Regards,
 


Posted By: Aaron
Date Posted: 07 July 2008 at 11:27am
Hi,
 
Thanks for reply.
 
No I don't use CJ Suite controls, I'm using only MS controls  
SuperMario set me on the wrong foot by saying that VB should not get confused with the labels (MS/CJ). But it's the same thing with MS Treeview (MSCOMCTL / COMCTL32). This will remind me if I'm going to use CJ controls that I always have to add the library name
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....



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