The Code Project - TreeListView

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi All.

I'm looking for a control to use in VB.NET 2005 that merge a Listview
functions with a Treeview. A good example is this one:
http://www.codeproject.com/cs/miscctrl/treelistview.asp

The only problem is that after I've added a reference and also the control,
I can compile it, use it, work on it only one time in VB. After, when I want
to reopen the Designer to Edit the Form1 (that contains the control) I
receive an error:
--------------------------------------------------
"One or more errors encountered while loading the designer. The errors are
listed below. Some errors can be fixed by rebuilding your project, while
others may require code changes. "
The variable 'TreeListViewItemCollectionComparer1' is either undeclared or
was never assigned.
The variable 'TreeListViewItemCollectionComparer1' is either undeclared or
was never assigned.
--------------------------------------------------

The Designer doesn't start.
I' ve tryed to cut the code directly into the Form1.Designer.vb (I know that
I can't) and after I've removed the code of
TreeListViewItemCollectionComparer1 definition I can reopen the Designer
correctly. Obviously when I modify any proprieties the Designer Re-Write the
Form1.Designer.vb and introduce on it the same error.

Last thing. Very Important. This happen only with VB project. If I use this
control in a C# project all work fine.

Any Suggestions???
Thank a lot.
IlQlo


.



Relevant Pages

  • RE: Adding designer support to a custom tree control
    ... Based on my understanding, you want to write a customized TreeView control, ... In .Net Windows Form designer, TreeNode is container in the TreeView ... you must provide your customized designer for the TreeNode class. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: PDA application development
    ... Chris Tacke, Embedded MVP ... To get it to even work at all - not considering designer support ... write a COM interop wrapper around the control. ... "Michael Salamone" wrote: ...
    (microsoft.public.pocketpc.developer)
  • Re: Disappearing Controls when the designer loads a form.
    ... which were traced to an exception my user control threw while in the designer. ... private ArrayList readOnlyColumnsList; ... public string ReadOnlyColumns ...
    (microsoft.public.dotnet.framework.windowsforms.designtime)
  • Re: Dream GUI toolkit (Was: GUI programming.)
    ... > the designer or programmer thought he was being 'artistic'. ... > designer control over how the buttons are arranged. ... Similar, in my mind, to a drum track or synth arpeggio. ... Certainly drum tracks and auto layout are faster and ...
    (comp.programming)
  • Re: Region property and applying it in a control
    ... > my region, but when the user resizes the control, the image does not match ... >> Bob Powell ... >> // This call is required by the Windows.Forms Form Designer. ... >> protected override void OnPaintBackground ...
    (microsoft.public.dotnet.framework.drawing)