Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > General Discussion
  New Posts New Posts RSS Feed - control names
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

control names

 Post Reply Post Reply
Author
Message
fc41 View Drop Down
Newbie
Newbie
Avatar

Joined: 05 July 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote fc41 Quote  Post ReplyReply Direct Link To This Post Topic: control names
    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?
Back to Top
ijwelch View Drop Down
Senior Member
Senior Member


Joined: 20 June 2006
Status: Offline
Points: 262
Post Options Post Options   Thanks (0) Thanks(0)   Quote ijwelch Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
fc41 View Drop Down
Newbie
Newbie
Avatar

Joined: 05 July 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote fc41 Quote  Post ReplyReply Direct Link To This Post Posted: 07 July 2008 at 5:54am
u r the man 
Vb6Sp6
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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?
 
 
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....
Back to Top
Lodep59 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 03 April 2008
Status: Offline
Points: 203
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lodep59 Quote  Post ReplyReply Direct Link To This Post 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,
 
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
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.109 seconds.