ge***********@gmail.com wrote:
I want the listview control to "visually look the same" as an enabled
control,
But yet the use can not do stuff like edtit cells or resize
gridcolumns etc etc...
In .NET, set LabelEdit = false to prevent editing of item captions. I
don't think you can disable header column resizing, but you can disable
header click, and hide the header columns altogether, with the
HeaderStyle property. You can try to handle the MouseDown event, and if
the mouse is on top of a column, just discard the window message.
Actually I don't believe it's a good idea to disable header resizing --
your customers will hate you for that. It's like disabling the scrolling
of items. What if a caption is too long and the user has a wide screen
monitor, or they use a larger than normal font? You gotta allow such
basic operations.
Ultimately you can do anything by painting to the screen directly. Start
with a Panel control and paint whatever you wish on top of it.
Tom