Click here to Skip to main content
15,915,070 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionVB Preprocessor??? Pin
Jason McBurney30-Jan-04 5:41
Jason McBurney30-Jan-04 5:41 
AnswerRe: VB Preprocessor??? Pin
Ian Darling30-Jan-04 11:39
Ian Darling30-Jan-04 11:39 
GeneralI need help writing a script that will do the following Pin
jbeck2230-Jan-04 5:25
jbeck2230-Jan-04 5:25 
GeneralWifi and VB Pin
dmsdp30-Jan-04 5:21
dmsdp30-Jan-04 5:21 
GeneralRe: Wifi and VB Pin
Dave Kreskowiak30-Jan-04 9:04
mveDave Kreskowiak30-Jan-04 9:04 
GeneralRichEdit Pin
Matthew Hazlett29-Jan-04 22:06
Matthew Hazlett29-Jan-04 22:06 
GeneralRe: RichEdit Pin
Matthew Hazlett2-Feb-04 8:43
Matthew Hazlett2-Feb-04 8:43 
GeneralRe: RichEdit Pin
Member 10089689-Apr-04 7:34
Member 10089689-Apr-04 7:34 
you'll have to use the LockWindowUpdate function from the User32.lib

The LockWindowUpdate function disables or enables drawing in the specified window. Only one window can be locked at a time.

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

Applicable to VB4-32,5,6

Parameter Information

hWndLock
Specifies the window in which drawing will be disabled. If this parameter is NULL, drawing in the locked window is enabled.


Return Values

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero, indicating that an error occurred or another window was already locked.


Declare the function - usually in a .bas module

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


Where your code is...

Private sub WhereEver()

LockWindowUpdate Rich1.hwnd

your code goes here...

LockWindowUpdate False

end sub

Hope this is useful

Budgieboy
GeneralFile properties dialog box Pin
ltt1929-Jan-04 17:45
ltt1929-Jan-04 17:45 
GeneralTreeview and regex Pin
spaceus29-Jan-04 13:00
spaceus29-Jan-04 13:00 
GeneralRe: Treeview and regex Pin
Lewis Moten30-Jan-04 9:14
Lewis Moten30-Jan-04 9:14 
Generalread line by line Pin
ltt1929-Jan-04 9:58
ltt1929-Jan-04 9:58 
GeneralRe: read line by line Pin
Mike Ellison29-Jan-04 10:09
Mike Ellison29-Jan-04 10:09 
GeneralRe: read line by line Pin
ltt1929-Jan-04 10:30
ltt1929-Jan-04 10:30 
GeneralRe: read line by line Pin
Mike Ellison29-Jan-04 10:40
Mike Ellison29-Jan-04 10:40 
GeneralRe: read line by line Pin
ltt1929-Jan-04 11:01
ltt1929-Jan-04 11:01 
GeneralRe: read line by line Pin
Dave Kreskowiak29-Jan-04 11:03
mveDave Kreskowiak29-Jan-04 11:03 
GeneralRe: read line by line Pin
ltt1929-Jan-04 11:12
ltt1929-Jan-04 11:12 
GeneralRe: read line by line Pin
Dave Kreskowiak30-Jan-04 4:20
mveDave Kreskowiak30-Jan-04 4:20 
GeneralRe: read line by line Pin
ltt1930-Jan-04 6:35
ltt1930-Jan-04 6:35 
GeneralRe: read line by line Pin
Dave Kreskowiak30-Jan-04 8:33
mveDave Kreskowiak30-Jan-04 8:33 
GeneralDoEvents Pin
Mike Mestemaker29-Jan-04 4:37
Mike Mestemaker29-Jan-04 4:37 
GeneralRe: DoEvents Pin
Lewis Moten30-Jan-04 8:43
Lewis Moten30-Jan-04 8:43 
GeneralCreating Setup for VB .Net and how to include the supports need to run the application Pin
payal sheth29-Jan-04 1:49
payal sheth29-Jan-04 1:49 
GeneralDiary Pin
Martyn Redgate28-Jan-04 23:24
Martyn Redgate28-Jan-04 23:24 

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.