Hai,
i have a problems with my ListView in Visual Studio 2008.
I can move this delay tab :
http://localhostr.com/file/ezujFtB/Unbenannt.png
Like this :
http://localhostr.com/file/A91Yo4D/Unbenannt-3.png

How can i prevent that ?, i tryed many differnt settings, but nothing seems to work.

You're going to have to create a class that inherits from ListView and play with the underlying mechanics to get it to do what you want. Here's an example of doing it in VB (http://www.vbforums.com/archive/index.php/t-145805.html I know it's the wrong language, but that value that they cite is probably what needs to be modified). So, inherit the class and change the CreateParams property.

For example, this was a way to turn a horizontal scroll bar into a vertical one:

property System::Windows::Forms::CreateParams ^ CreateParams
   {
	virtual System::Windows::Forms::CreateParams ^ get() override
	{
            System::Windows::Forms::CreateParams ^ cp = ProgressBar::CreateParams;
	    cp->Style |=0x04;
	    return cp;
	}
   }

And then there's the freebie option, which is probably worth mentioning, if you don't need the gridlines you can shut them off. I don't know how feasible that is for your project.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.