Link to home
Start Free TrialLog in
Avatar of yassin092898
yassin092898

asked on

ListView control in mscomctl.ocx

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.
ASKER CERTIFIED SOLUTION
Avatar of hongjun
hongjun
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JonFish85
JonFish85

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

hope this helps!
Avatar of Éric Moreau
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.
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".
yassin,
I like your grading record.

hongjun
Avatar of yassin092898

ASKER

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.


May be something wrong with my Visual Studio.

Thank you all