Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Focus Issue


Reply
 
Thread Tools Display Modes
  #1  
Old 08-17-2003, 08:20 AM
tcalp's Avatar
tcalp tcalp is offline
Junior Contributor
 
Join Date: Feb 2003
Posts: 293
Unhappy Focus Issue


On my main form I have a Treeview and a picturebox which project forms get placed into using SetParent API. When the Treeview looses focus the selecteditem no longer appears selected. I'm not sure if I've simply missed something very simple or I have an interesting problem on my hands. Anyhow I'd like the selectedItem of the treeview to appear selected when it looses focus .. just like in windows explorer when you've selected a file in the listview you can still tell which folder is selected. Any help in the right direction would be appriciated.

Thanks,
__________________
~T
Reply With Quote
  #2  
Old 08-17-2003, 08:24 AM
Val's Avatar
Val Val is offline
Senior Contributor
 
Join Date: May 2003
Location: Vancouver, WA
Posts: 1,268
Default

HideSelection (or smth with similiar name). It's on the prop sheet too.
Reply With Quote
  #3  
Old 08-17-2003, 08:24 AM
navet1ss navet1ss is offline
Junior Contributor
 
Join Date: Mar 2003
Posts: 299
Default

Set the HideSelection property for the TreeView to false.
__________________
NAVigation Electronics Technician 1st class Submarine Service
--------------------in case you were wondering--------------------
Reply With Quote
  #4  
Old 08-17-2003, 08:36 AM
tcalp's Avatar
tcalp tcalp is offline
Junior Contributor
 
Join Date: Feb 2003
Posts: 293
Default

overlooked something simple it is

thanks fellas
__________________
~T
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Small Focus Issue.... einsteinthe2nd General 1 08-07-2003 08:34 AM
Problem with focus - any help please? mjohnson3091 API 5 07-01-2003 07:17 AM
Problem With TextBox focus mjohnson3091 General 2 06-30-2003 02:23 PM
Focus problem DFire276 General 3 06-05-2003 12:32 PM
refresh a form not in focus from a form that is in focus Drogren General 5 10-21-2002 12:52 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->