473,851 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB.Net and LockWindowUpdat e

Hello,

I have used the API Function "LockWindowUpda te" in my VB 6 applications and
was curious if this API function still exists in VB.Net. I have spent 4
hours surfing the 'net for an example but found nothing that seems to work.
If "LockWindowUpda te" is still valid in VB.Net could some provide a sample
where a form is locked?

Cheers,
Richard
Nov 21 '05 #1
2 6945
Did you have a look at SuspendLayout and ResumeLayout?

--

HTH

Éric Moreau
MCSD, Visual Developer - Visual Basic MVP
(http://aspnet2.com/mvp.ashx?EricMoreau)
Conseiller Principal / Senior Consultant
Concept S2i inc.(www.s2i.com)
"Richard Thornley" <rh**@thorsoft. com> wrote in message
news:Ol******** ******@TK2MSFTN GP14.phx.gbl...
Hello,

I have used the API Function "LockWindowUpda te" in my VB 6 applications
and was curious if this API function still exists in VB.Net. I have spent
4 hours surfing the 'net for an example but found nothing that seems to
work. If "LockWindowUpda te" is still valid in VB.Net could some provide a
sample where a form is locked?

Cheers,
Richard

Nov 21 '05 #2
"Richard Thornley" <rh**@thorsoft. com> schrieb:
I have used the API Function "LockWindowUpda te" in my VB 6 applications
and was curious if this API function still exists in VB.Net.


Preventing controls from redrawing
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=disableredr awing&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5572
by: whirl | last post by:
Hello. before I paste my code I will try and explain what I am trying to achieve. I have loaded a txt file which contains 26,000 items into a listview I want to be able to enter some text into a text box and when I press a command button it Removes all items from the listview that DOES NOT match what I have entered in the text box. Although the code below works, it is extremely SLOW. can anyone help me improve this, (example code would...
6
7884
by: R.Wieser | last post by:
Hello All, I'm trying to get a "Virtual Listbox" to work. I've currently got a form, and used CreateWindowExA to create a ListBox with the LBS_OWNERDRAWFIXED and LBS_NODATA flags on it. I've allso subclassed the window and do see all kinds of WS_??? messages coming by. But now I'm stuck :-\ I've got *no* idea what to do next, and all my searching on the web leads me
1
12890
by: Dan H. | last post by:
Hello, I've been having a pickle of time trying to find any information about the following. The Win32 API has a function called 'LockWindowUpdate' which, if I'm not mistaken, prohibits all painting of the window including children controls until unlocked. The only thing that I can find that even seems close in .NET is SuspendLayout and ResumeLayout, but these don't really effect painting - just sizing, moving, docking, and anchoring. ...
1
419
by: Dave Veeneman | last post by:
I'm working on an application that uses a MDI interface. Each child form has a number of text boxes and labels. The interface follows the Outlook convention that only one child is open at a time, and the current child is unloaded when a new MDI child form is loaded. Her's my problem: There is a noticeable flicker in the MDI client area when the app switches from one form to another. I've tried sending WM_SETREDRAW messages to the form,...
7
8146
by: adh | last post by:
How do you temporarly stop the screen painting in VB.NET (alla "echo off" in vb6)? I have a modal form that when closing keeps partial showing. Thanks ADH
2
3025
by: Gene Vital | last post by:
I am using the LockWindowUpdate API to lock my form while updating and then Unlock when I am done. It was pretty simple to make the call to lock the form with the form handle but how do I Unlock it? I can't seem to get it. Thanks.
3
9805
by: Paul Remblance | last post by:
I have just converted a project from VB 2003 to VB 2005 and the LockWindowUpdate no longer works! Friend Declare Function LockWindowUpdate Lib "user32.dll" (ByVal hWndLock As Long) As Boolean LockWindowUpdate(Me.Handle.ToInt32) LockWindowUpdate(0) Any other ideas how to lock the window in VB 2005?
4
1932
by: Just close your eyes and see | last post by:
Hi All when I am trying to discover visual studio 2005, I got a strange behavior when I am trying to put about 50 button on the form and run the application it makes some flicking in the startup I tried to avoid flicking by using DoubleBuffered, see this class InheritedButton:Button { public InheritedButton() { this.DoubleBuffered = true;
6
4759
by: Ryan | last post by:
I have a windows form that I want to force validation on controls (text boxes) when the user clicks a "Save" button. The only way I've found to do this is to cycle through every control and call it's .Select() method. This is clunky though because you can see a flash in each text box as it's being validated. Here's my code Private Sub Save() For each c as control in Me.Controls If c.CanSelect() then c.Select()
0
9895
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11011
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10670
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10725
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9503
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7900
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7072
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5931
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3178
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.