Leave selection showing when TreeView loses focus

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

H
Does anyone have a way of getting a TreeView to keep the selected item highlighted, even when the control has lost focus. In the full .NET environment I can simply set the HideSelection property to false, but unfortunately the property isn't available in CF

I think it would work if I could apply the TVS_SHOWSELALWAYS style to the underlying control, but am unsure how to use P/Invoke to set the style once the control has been created. Can anyone help me out

Any help much appreciate

Mark
 
Hi

It is always best to search this group using google for previously answered
questions...

http://groups.google.com/groups?hl=...soft.public.dotnet.framework.compactframework

Cheers
Daniel


Mark D said:
Hi
Does anyone have a way of getting a TreeView to keep the selected item
highlighted, even when the control has lost focus. In the full .NET
environment I can simply set the HideSelection property to false, but
unfortunately the property isn't available in CF.
I think it would work if I could apply the TVS_SHOWSELALWAYS style to the
underlying control, but am unsure how to use P/Invoke to set the style once
the control has been created. Can anyone help me out?
 
Back
Top