codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:



Home » Visual Basic » Article

Stop Forms from Flickering while updating Controls

Article by: Brian Gillham (8/26/2002)
Bookmark us now! Add to Favourites
Email a friend!Tell a friend
Sponsored by: Neil Matthews Hypnotherapy, Wilmslow
Summary: Stop Forms from Flickering while updating Controls
Viewed: 15188 times Rating (6 votes): 
 4.7 out of 5
 Rate this Article  Read Comments  Post Comments

Stop Forms from Flickering while updating Controls



Often when updating a Treeview, ListView etc. a lot of flickering takes place. To prevent this create a class called Freeze and use it in your form like this: Dim Freeze as New Freeze Freeze.Form Me when the scope goes out range the class will destroy itself and everything will be back to normal.

Past the following into the declarations section of your project:

Select All Code


Now add the following sub routines:

Select All Code







CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
Rate this article:     Poor Excellent
View highlighted Comments
User Comments on 'Stop Forms from Flickering while updating Controls'
Posted by :  Archive Import (Yuri) at 08:56 on Wednesday, August 28, 2002
WOW Thanks
It was a great trouble with my control!
Posted by :  Archive Import (WaQas.) at 01:01 on Sunday, November 03, 2002
this is very god website........
Posted by :  Archive Import (Rance) at 17:06 on Tuesday, November 19, 2002
Looks like this was made for VB, not for vbScript. I get a syntax error on the 'LockWindowUpdate()' declaration on the vbScript side. Anyone done this in vbScript? Thanks for any help you can provide.
Posted by :  Archive Import (sachin) at 03:39 on Saturday, December 07, 2002
hi!!
i am adding near about 82 sub items in the listview, mostly from the adodb.recordset. I tried the above functions but still its flickring.
Please help me!!!
If there is any other solution!!!!
Thanks in advance!
Desparately need the solution!!
sachin
Posted by :  Archive Import (swati) at 03:37 on Tuesday, June 03, 2003
I have tried out the above mentioned code but it does not seem to be working in case of a dtppicker control. It flickers no matter what ? any one has any idea as to why it happens ?

I thought that if the form is locked that should be sufficient enough, but i guess it is not !!!
Posted by :  Archive Import (Amit Puri) at 09:21 on Tuesday, June 03, 2003
thanks a lot.

Really help a lot in our team's work.


To post comments you need to become a member. If you are already a member, please log in .

 



RELATED ARTICLES
Generate License Keys (such as CD keys on Microsoft software)
by Brian Gillham
This class allows you to generate license keys, such as the CD keys on the case of most Microsoft software
Visual Basic Read and Modify the Registry
by Kenneth Ives
Perform the four basic functions to the Windows registry. Add, change, delete, and query. Allows you to to read registry values, and modify both keys and values.
Communicating with the Database (Using ADO)
by Chaudhary Pradeep K. Roy
Using ADO to get connected with the database.
Generate an Array of Unique Random Numbers
by Brian Gillham
This function will generate an ARRAY of TRULY random numbers.
Beginning Resource Files in Visual Basic
by Kenneth Ives
Have you ever wanted to use graphics, such as icons, bitmaps, cursors, and AVI files? How about sound or even message box text? This can be an enormous amount of overhead. These are all examples of more files to keep track of when you distribute an application, DLL, or OCX. Lets find out how resource files can help....
Visual Basic Compact/Repair Access Database Utility
by Kenneth Ives
This utility will compact and repair the access database you select. It is actually more convenient to use this utility than do the same task with Access, because you don't have to save the database with a different name and then delete the old database when you are done: here, a temporary copy of the database is automatically created and deleted.
Creating a watermark in Excel with VBA
by Kenneth Ives
Adding a watermark to an Excel spreadsheet using VBA.
Generate your own Random Numbers
by Thaha Hussain
This simple program generates random numbers using the basic mathematical methods.
Change Cursor to Hour Glass
by Brian Gillham
A simple script to change the cursor to an hour glass.
Analog Clock
by Thaha Hussain
This program demonstrates Thaha Hussain's Clock Work Formula to paint an Analogue Clock.








Recent Forum Threads
• Perl Unit Test Error
• execute a script in perl script
• Finding data in hash
• Re: finding the mismatches
• Time problem
• vector
• vector
• Math
• Re: Insert Contents of .txt file into a .html page


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2008