Click here to Skip to main content
15,913,939 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralSocket/TCPclient (Seriazlation) Pin
DeSerializeMe10-Nov-02 12:52
sussDeSerializeMe10-Nov-02 12:52 
GeneralPrinting on dot-matrix printer in .NET Pin
Derec Roofie10-Nov-02 10:53
Derec Roofie10-Nov-02 10:53 
GeneralAxInterop.AXRfaxVwRctrLLib Pin
Zulfikar Ali8-Nov-02 12:57
Zulfikar Ali8-Nov-02 12:57 
QuestionObject behaviour of simple data types? Pin
Jan Tielens8-Nov-02 0:37
Jan Tielens8-Nov-02 0:37 
AnswerRe: Object behaviour of simple data types? Pin
Richard Deeming8-Nov-02 7:07
mveRichard Deeming8-Nov-02 7:07 
GeneralTreeView redraw lag.. Pin
dazinith7-Nov-02 10:41
dazinith7-Nov-02 10:41 
GeneralRe: TreeView redraw lag.. Pin
mikasa7-Nov-02 11:10
mikasa7-Nov-02 11:10 
GeneralRe: TreeView redraw lag.. Pin
mikasa7-Nov-02 11:14
mikasa7-Nov-02 11:14 
Doh! Sorry, using .NET here...

Anyway, use the API Function "LockWindowUpdate".

Public Declare Function LockWindowUpdate Lib "user32" (ByVal hWndLock As Long) As Long

Then, use this function when Populating or Clearing the TreeView.

Call LockWindowUpdate(Tree.hWnd)
'Populate or Clear Nodes
Call LockWindowUpdate(0)

Always remember to "UnLock" after you are done, otherwise it never repaints. Also, if you are updating more controls (i.e. ComboBoxes) that are on the same Form, just Lock the Whole Form that way painting will not occur on any controls.

I use this in my App all the time and it has sped up the process of loading Forms by up to 70%!
GeneralRe: TreeView redraw lag.. Pin
dazinith11-Nov-02 4:32
dazinith11-Nov-02 4:32 
GeneralRe: TreeView redraw lag.. Pin
mikasa26-Mar-03 3:31
mikasa26-Mar-03 3:31 
GeneralVB Silent Install Pin
Davy Mitchell6-Nov-02 4:43
Davy Mitchell6-Nov-02 4:43 
GeneralRe: VB Silent Install Pin
Nick Parker6-Nov-02 16:49
protectorNick Parker6-Nov-02 16:49 
GeneralRe: VB Silent Install Pin
Davy Mitchell6-Nov-02 22:09
Davy Mitchell6-Nov-02 22:09 
GeneralLaunching External Exe File Pin
Desmond5-Nov-02 22:43
Desmond5-Nov-02 22:43 
GeneralRe: Launching External Exe File Pin
Nick Parker6-Nov-02 2:12
protectorNick Parker6-Nov-02 2:12 
GeneralRe: Launching External Exe File Pin
Vasudevan Deepak Kumar6-Nov-02 4:02
Vasudevan Deepak Kumar6-Nov-02 4:02 
QuestionMultiple DataTables in DataGrid? Pin
ILoveInternet5-Nov-02 22:10
ILoveInternet5-Nov-02 22:10 
AnswerRe: Multiple DataTables in DataGrid? Pin
Tuukka Turto19-Nov-02 19:42
Tuukka Turto19-Nov-02 19:42 
GeneralDrawing Issue Pin
Jamie Nordmeyer5-Nov-02 9:46
Jamie Nordmeyer5-Nov-02 9:46 
GeneralRe: Drawing Issue Pin
Nick Parker5-Nov-02 12:56
protectorNick Parker5-Nov-02 12:56 
GeneralRe: Drawing Issue Pin
Jamie Nordmeyer6-Nov-02 4:15
Jamie Nordmeyer6-Nov-02 4:15 
GeneralRe: Drawing Issue Pin
Zulfikar Ali6-Nov-02 5:16
Zulfikar Ali6-Nov-02 5:16 
GeneralRe: Drawing Issue Pin
Jamie Nordmeyer6-Nov-02 6:27
Jamie Nordmeyer6-Nov-02 6:27 
GeneralVBS script question ( simple one ) Pin
Stephane Routelous5-Nov-02 6:06
Stephane Routelous5-Nov-02 6:06 
GeneralRe: VBS script question ( simple one ) Pin
Stephane Routelous5-Nov-02 6:52
Stephane Routelous5-Nov-02 6:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.