Hi,
I'm having some problems HIDING a TreeView. The control is 'hosted' in a
TopLevel Form that is displayed as a drop-down window for a control,
following the pattern at:
http://www.vbaccelerator.com/home/NET/Code/Controls/Popup_Windows/Popup_Windows/
article.asp
However, when the drop-down Form is hidden (with .Hide(), not destroyed)
on the AfterSelect handler, the main form doesn't activate, and the title
changes to inactive. It looks like a hidden window is holding the focus.
I've tried treeView.Hide(), mainForm.Activate(), etc. etc., but somehow the
main form manages to remain inactive.
Any work-arounds?
Thanks in advance,
Juan
Juan Ignacio Gelos - 28 Dec 2004 19:56 GMT
I found a work-around: just before hiding the drop-down form that contains
the treeView, I disable it (treeView.Enabled = false;)... it works like a
charm.
Someone should take note of this bug somewhere...
Cheers,
Juan
> Hi,
>
> I'm having some problems HIDING a TreeView. The control is 'hosted' in a
> TopLevel Form that is displayed as a drop-down window for a control,
> following the pattern at:
http://www.vbaccelerator.com/home/NET/Code/Controls/Popup_Windows/Popup_Windows/
article.asp
> However, when the drop-down Form is hidden (with .Hide(), not destroyed)
> on the AfterSelect handler, the main form doesn't activate, and the title
[quoted text clipped - 6 lines]
> Thanks in advance,
> Juan