[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 135
  • Last Modified:

VB Form Refreshing

I am using an ActiveX control that mimics Windows Explorer with a tree-view control.  I would like to turn off the form redraw when I traverse the tree to speed things up and avoid the annoying screen flicker.  When the process is done I would then turn the redraw back on.
0
bradfordcogswell
Asked:
bradfordcogswell
  • 2
1 Solution
 
mcriderCommented:
You can do this by using the LockWindowUpdate API...


Declare Function LockWindowUpdate Lib "user32" Alias "LockWindowUpdate" (ByVal hwndLock As Long) As Long


Pass the hWnd of the treeview to stop the update and 0& to start the update again...


Cheers!
0
 
bradfordcogswellAuthor Commented:
Thanks.  Worked like a charm!
0
 
mcriderCommented:
Thanks for the points! Glad I could help!


Cheers!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now