Listview control vertical scroll bar

K

Ken Warthen

I'm using an ActiveX listview control (MSComctlLib.ListViewCtrl) on an Access
2007 form. I noticed that on records where the listview contents exceed the
height of the control, the vertical scrollbar does not appear as it should.
I tried adding the line

Me.lvwContacts.FlatScrollBar = True

to the Form_Activate event of the form, but it did not solve the problem.
If anyone has run into this problem I would be very appreciative of any
advice.

Ken
 
K

Ken Warthen

Thanks for your suggestion Graham. I had in fact read the KB article. I
have the listview control's FlatScrollBar property value set to false. To my
knowledge the listview control does not have a 3D value option. Hopefully,
somebody has found a solution to this bug and will view my post. Your effort
is appreciated.

Ken

Graham Mandeno said:
Hi Ken

Have you seen this KB article?
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q190673

It seems to imply that as well as setting FlatScrollBar to true in the
Activate event, you must also have it set to False in the control's property
sheet.

BTW, does it work with a 3D scrollbar?
--
Good Luck :)

Graham Mandeno [Access MVP]
Auckland, New Zealand

Ken Warthen said:
I'm using an ActiveX listview control (MSComctlLib.ListViewCtrl) on an
Access
2007 form. I noticed that on records where the listview contents exceed
the
height of the control, the vertical scrollbar does not appear as it
should.
I tried adding the line

Me.lvwContacts.FlatScrollBar = True

to the Form_Activate event of the form, but it did not solve the problem.
If anyone has run into this problem I would be very appreciative of any
advice.

Ken
 
M

Maurice

Ken,

I tried reproducing the problem, however I can't reproduce it yet. Does it
happen consequently or is this in some cases.

Here's what I did:

Placed a listview control (6.0) on a form.
Set the view to report
Added code to fill the listview (with customers from northwind)

Opened the form (making sure the listview would not be large enough to show
all the records) and was presented with a nice vertical scrollbar.

I didn't change any other settings in the listview and left all settings to
the defaults. I used to columns to fill with data.

So can you tell me what settings you have so i can try to reproduce it.

For what it's worth: WinVista(home premium) / Access 2007 sp1
--
Maurice Ausum


Ken Warthen said:
Thanks for your suggestion Graham. I had in fact read the KB article. I
have the listview control's FlatScrollBar property value set to false. To my
knowledge the listview control does not have a 3D value option. Hopefully,
somebody has found a solution to this bug and will view my post. Your effort
is appreciated.

Ken

Graham Mandeno said:
Hi Ken

Have you seen this KB article?
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q190673

It seems to imply that as well as setting FlatScrollBar to true in the
Activate event, you must also have it set to False in the control's property
sheet.

BTW, does it work with a 3D scrollbar?
--
Good Luck :)

Graham Mandeno [Access MVP]
Auckland, New Zealand

Ken Warthen said:
I'm using an ActiveX listview control (MSComctlLib.ListViewCtrl) on an
Access
2007 form. I noticed that on records where the listview contents exceed
the
height of the control, the vertical scrollbar does not appear as it
should.
I tried adding the line

Me.lvwContacts.FlatScrollBar = True

to the Form_Activate event of the form, but it did not solve the problem.
If anyone has run into this problem I would be very appreciative of any
advice.

Ken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top