Solved

Lock treeview update

Posted on 2006-07-18
1
249 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

775 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