Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Derived ListView Class to eliminate Flickering.

10 views
Skip to first unread message

Jose Fuentes

unread,
Jul 1, 2008, 6:46:47 PM7/1/08
to

Hello,
**

I'm trying to eliminate the listview flicker. A created a class derive
from listview and set the properties for optimizeddouble buffer etc.

*********
public ref class myFFlistview : System::Windows::Forms::ListView
{
public:
myFFlistview(void);
};

myFFlistview::myFFlistview(void)
{
this->SetStyle(ControlStyles::OptimizedDoubleBuffer |
ControlStyles::AllPaintingInWmPaint, true);
}

I used this class in my project by changing the current list view that i
had in the designer to my type:

//System::Windows::Forms::ListView^ ThelistView;

myFFlistview^ ThelistView;

//this->ThelistView = (gcnew //System::Windows::Forms::ListView());

this->ThelistView = (gcnew myFFlistview());


**The project compile and build and was tested everything works, without
flickering. But when i try to open the designer i can't see any of the
GUI.
Just this message:
**

C++ CodeDOM parser error: Internal Error
Hide

at Microsoft.VisualC.CppCodeParser.OnMethodPopulateStatements(Object
sender, EventArgs e)
at System.CodeDom.CodeMemberMethod.get_Statements()
at
System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deseria
lize(IDesignerSerializationManager manager, CodeTypeDeclaration
declaration)
at
System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.Perform
Load(IDesignerSerializationManager manager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoa
der.PerformLoad(IDesignerSerializationManager serializationManager)
at
System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad
(IDesignerLoaderHost host)

****
Is there another way to set the optimized double buffer or cast the
listview at runtime so I can still have the designer available for other
people to see.

Thanks

*** Sent via Developersdex http://www.developersdex.com ***

0 new messages