Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Common Controls 5 and 6 in the same project. 1

Status
Not open for further replies.

gmmastros

Programmer
Feb 15, 2005
14,910
US
I'm working on a very large project. There must be 100 forms in my project.

I did a stupid thing a very long time ago. I have the following components in my project...
'Microsoft Windows Common Controls 5.0 (sp2)'
'Microsoft Windows Common Controls 6.0 (SP6)'

I want to remove the version 5 component, but VB won't let me because it is in use. How can I tell where a V5 component is being used so that I can replace it with the V6 component?

Is there a better way of swapping out the V5 components with the V6 components?
 
If you use XP themes you might not want to use 6.0 because it does not draw them correctly, I use them both myself.

If you do want to remove them click on each control and click the about property in the properties window to get the version.



Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.
 
You can open the .FRM files with a text editor like Notepad.

Below is a .FRM file from a test form that I made. It has 1 of each type of TreeView. The names of the objects are in [red]red[/red] and the names of their respective libraries are in [blue]blue[/blue]
Code:
VERSION 5.00
Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "COMCTL32.OCX"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  'Windows Default
   Begin [blue]MSComctlLib.TreeView[/blue] [red]TreeView2[/red] 
      Height          =   1455
      Left            =   2520
      TabIndex        =   1
      Top             =   240
      Width           =   1455
      _ExtentX        =   2566
      _ExtentY        =   2566
      _Version        =   393217
      Style           =   7
      Appearance      =   1
   End
   Begin [blue]ComctlLib.TreeView[[/blue] [red]TreeView1[/red] 
      Height          =   1575
      Left            =   0
      TabIndex        =   0
      Top             =   120
      Width           =   2055
      _ExtentX        =   3625
      _ExtentY        =   2778
      _Version        =   327682
      Style           =   7
      Appearance      =   1
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
 
Thanks sheco. I did a search within the forms for the phrase 'Begin ComctlLib'. There were only a small handful. You probably saved me countless hours.

Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top