Solved

Lock treeview update

Posted on 2006-07-18
1
252 Views
Last Modified: 2006-11-18
Hi Experts,

I would like to lock a treeview from updating for a few lines of code,

What i mean is:

'Lock
If IsExpanded = True Then
        Nd.Collapse()
    Else
        Nd.Expand()
End If
'Unlock

How easy is this to accomplish?

Cheers,

Tom
0
Comment
Question by:TommyTwoPints
1 Comment
 
LVL 5

Accepted Solution

by:
mydasx earned 500 total points
ID: 17134424
use synclock.  easy as greasy!

Sub MonkeyBusiness()
    SyncLock Me.treeView1
         'treeview bidness goes here
    End SyncLock
End Sub
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need a starter for ETL protocol? 4 65
Get Client IP on RDS - VB.NET 15 66
write xml in vb.net 2 32
vb.net Configuration, settings file location? 8 27
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

766 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question