Results 1 to 4 of 4

Thread: Lock application window to target form

  1. #1

    Thread Starter
    Fanatic Member Ruku's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    655

    Arrow 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:
    1. Private Declare Function LockWindowUpdate Lib "user32" Alias _
    2. "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

    EDIT: Oh and I'd also need the code to reverse the window back to it's original state...!
    Last edited by Ruku; Feb 28th, 2006 at 12:26 PM.

    Using VB.NET 2005/.NET 2.0, NetBeans IDE 5, Fujitsu Cobol85,
    Website: http://DreamForgery.com

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    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?

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    Fanatic Member Ruku's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    655

    Re: Lock application window to target form

    ah, thx, I'll try and dig something out!

    Using VB.NET 2005/.NET 2.0, NetBeans IDE 5, Fujitsu Cobol85,
    Website: http://DreamForgery.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width