Solved

Lock treeview update

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now