Click here to Skip to main content
15,909,827 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
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 
Actually, I figured I would Post this here. This function will Lock as many Windows as you want from Redrawing...unlike the "LockWindowUpdate" Function.

'API Declarations (.NET)
Private Declare Ansi Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As IntPtr, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer
'Routine to Lock a Window from Repainting
Public Sub LockWindowUpdate(ByVal Handle As IntPtr, ByVal Lock As Boolean)
	Const WM_SETREDRAW As Integer = &HB

	'Enable / Disable Drawing
	Call SendMessage(Handle, WM_SETREDRAW, Math.Abs(CInt(Lock)), 0)
End Sub


'API Declarations (VB6)
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
'Routine to Lock a Window from Repainting
Public Sub LockWindowUpdate(ByVal Handle As Long, ByVal Lock As Boolean)
	Const WM_SETREDRAW As Long = &HB

	'Enable / Disable Drawing
	Call SendMessage(Handle, WM_SETREDRAW, Abs(CInt(Lock)), 0)
End Sub

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 
GeneralRe: VBS script question ( simple one ) Pin
Richard Deeming6-Nov-02 3:42
mveRichard Deeming6-Nov-02 3:42 
GeneralRe: WScript.Path Pin
Vi26-Nov-02 4:20
Vi26-Nov-02 4:20 

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.