>I am using the MS Outline ActiveX control that comes with VFP5. What I want to do is have either just the first item expanded when it comes up or all of them expanded.
>
>The users get annoyed having to click to expand the items every single time.
>
>Is there any way that I can do this? The expand method doesn't seem to do anything nor does trying to stuff the keyboard.
I've not played with Outline ever since I tried TreeView, but they shouldn't be that different. The trick is that Expand event doesn't fire expanding; it's just called when this happens. To actuallly expand/collapse a node, you do ...node.expanded=.t. (or .f.). This holds for TreeView, and I seem to remember it was the same with Outline.