Results 1 to 4 of 4

Thread: lockwindowUpdate equivalent?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    lockwindowUpdate equivalent?

    Is there a way in .NET 2.0 to disable the control's UI updates, kind of like the LockWindowUpdate API?
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2
    Hyperactive Member drattansingh's Avatar
    Join Date
    Sep 2005
    Posts
    395

    Re: lockwindowUpdate equivalent?

    Are you talking about btn.enable = false or do you want to lock the entire form?

    P.S. I'm not sure that i understand your question.

  3. #3
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: lockwindowUpdate equivalent?

    Just use the LockWindowUpdate API function. That function (or anything like it) would be OS-specific anyway so it's likely that there is no simple .net counterpart.

    What's stopping you using it?

    However some (though not many) controls (like listviews and similar) have methods called "BeginUpdate" and "EndUpdate" which accomplish the same thing.
    I don't live here any more.

  4. #4

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Re: lockwindowUpdate equivalent?

    aah okay
    well I'm populating a list... was there an easy way to do this? maybe create the collection first and then add it to list ?
    I find it inefficient to add items one by one ... and Ihavent used .NET in ages so i cant remember anything
    I'll try the beginUpdate method, thanks!
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

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