Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / October 2003

Tip: Looking for answers? Try searching our database.

Howto make a TreeView readonly above item no 5

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lars Gr?tteland - 30 Oct 2003 10:30 GMT
Hello!

I would like this to happen:

In my treeview - I have 4 main group, and about one hundred items under
these four. Are there any way of making the selection under the fourth item,
item number 5. How can I set everything above this "read only"? And
everything below available to be selected.
Are there any way of doing this?

Signature

- Lars

Igor Tandetnik - 31 Oct 2003 01:31 GMT
> In my treeview - I have 4 main group, and about one hundred items under
> these four. Are there any way of making the selection under the fourth item,
> item number 5. How can I set everything above this "read only"? And
> everything below available to be selected.
> Are there any way of doing this?

You can handle TVN_SELCHANGING notification and prevent the selection
from moving to the items you don't want it to move to.
Signature

With best wishes,
   Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.