On 5/1/07, Alexander Cohen <[EMAIL PROTECTED]> wrote:
> Is there any way to add a Folder to a listbox but not get the
> disclosure triangle? Maybe i can implement one of the Paint functions
> but i have not been successful in doing so yet. Any ideas?

One approach you might consider is faking the appearance of folders
using the optional (and apparently undocumented) indent parameter to
the Listbox's InsertRow method. To see an example, drop the following
code into the Open event of a listbox.

  me.Hierarchical = True

  me.AddRow "Folder"
  me.InsertRow 1, "item 1", 1
  me.InsertRow 2, "item 2", 1
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to