Solved

ListView control in mscomctl.ocx

Posted on 2001-07-19
7
3,608 Views
Last Modified: 2012-05-04
I want to use the ListView control. My book says "A group of controls including the ListView are found
in the mscomctl.ocx file. To use thses controils in application, add this file to the project"

I found the file in C:\Winnt\system32.

How should I proceed adding the file in the project and to access it.

Thank you.
0
Comment
Question by:yassin092898
7 Comments
 
LVL 33

Accepted Solution

by:
hongjun earned 50 total points
Comment Utility
Run VB and start a new Standard Exe project.
Click on Project->Components
Then check on "Microsoft Windows Common Controls 6.0"
Listview activeX control will be displayed on the toolbox.

You can start using it now.



If you cannot find the "Microsoft Windows Common Controls 6.0", then maybe the ocx is not registered.

To register it, click Start->Run from your taskbar and then type this to register the ocx file.
     regsvr32 c:\winnt\system32\mscomctl.ocx



Read this
http://support.microsoft.com/support/kb/articles/Q194/7/84.ASP

Do you have all the other components like Microsoft Common Dialog Control 6.0, etc? If you are missing
some of them, I suggest you reinstall ActiveX controls part of your VB installation.



hongjun
0
 
LVL 6

Expert Comment

by:JonFish85
Comment Utility
Go to Project -> Components and click the "browse" button. Then select mscomctl.ocx control in \WinNT\system32\

hope this helps!
0
 
LVL 69

Expert Comment

by:Éric Moreau
Comment Utility
Under the Project menu, open Components. Find "Microsoft Windows Common Control" and select it. The listview control will appear in the toolbox. Place one on a form.
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 49

Expert Comment

by:Ryan Chong
Comment Utility
Hi yassin,

All of them are correct. And hongjun provides a good link to you.

If you are using Window professional series (win98 etc), you should find the mscomctl.ocx in "C:\Windows\System".
0
 
LVL 33

Expert Comment

by:hongjun
Comment Utility
yassin,
I like your grading record.

hongjun
0
 

Author Comment

by:yassin092898
Comment Utility
hongjun, thank you for noticing my grading record. I ask a question and I grad only when I am statisfied with the solution. If I get a correct answer the highest grade is deserved. If I get a good effort or lead I can work with or I benefit somehow the only reward I can give is few points and a good grad. Otherwise I reject the answer and wait for better answer which I think happened only twice since 1998.

THIS QUESTION is strange.
First I selected  "Microsoft Windows Common Controls 6.0" from from project->components but only a telephone picture shows in my toolbox and it name is "MSComm".

Second I tried Project -> Components and click the "browse" button to add mscomctl.ocx but
I get this error " The file 'c:\winnt\system32\mscomctl.ocx' was registrable as an ActiveX Component"


Third I tried to register the .ocx file and this is the error I got from the command
"regsvr32 c:\winnt\system32\mscomctl.ocx"

Here is the error.

"DllRegistrationServer in regsvr32 c:\winnt\system32\mscomctl.ocx failed. Return codewas: 0xc0000005"

Now it looks we are all doing the right thing but somehow things are not working for us.

I also reinstalled visual studio proffessional edition.

My Microsoft VB book says

"Note ToolBar, ProgressBar, ListView, Slider controls are a part of a group of ActiveX controls that are found in the mscomctl.ocx file. To use these controls in your application, add this file to the project"

I am sorry I don't have more points to increase the points.

Thank you.


0
 

Author Comment

by:yassin092898
Comment Utility
May be something wrong with my Visual Studio.

Thank you all
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now