Lock application window to target form
I remember back in vb6 I found some sample code that permited to lock notepad within an MDI child form on a project.
I'm looking for the exact same thing... but within vb .net and through a normal form.
I searched the forums and found
VB Code:
Private Declare Function LockWindowUpdate Lib "user32" Alias _
"LockWindowUpdate" (ByVal hwndLock As Long) As Long
which looks like a peace of the puzzle I need...
if anybody got pointers I'd appreciate... thx :wave:
EDIT: Oh and I'd also need the code to reverse the window back to it's original state...!
Re: Lock application window to target form
LockWindowUpdate disabled redrawing of a window...
I don't think this is what you are looking for?
Perhaps you are looking for something like SetParent? A function to take an existing window, and stick it inside a window in your application?
Re: Lock application window to target form
Someone else did this same thing recently and I posted to the thread, so if you search for "SetParent" with my user name you should be able to find the thread.
Re: Lock application window to target form
ah, thx, I'll try and dig something out!