ASP.NETPro Magazine Greater New Orleans .NET User Group (GNONUG) "KNOW .NET"
      INETA    Programming    Blogs    Data    Tool    Visual Studio.NET    C#    Other    .NET Framework    .NET Components    ADO.NET    Utility

GNONUG
Mission
Events
Discuss
Resource
Support
Links
Training



Improve Performance of ListBoxes

Posted by on Sunday, July 20, 2003 (PST)

If you are loading a lot of items into a ListBox or ComboBox, you can speed up the operation considerably by using BeginUpdate() and EndUpdate().
1. Improve Performance of ListBoxes
If you are loading a lot of items into a ListBox or ComboBox, you can speed up the operation considerably by using BeginUpdate() and EndUpdate(). Typical code looks like this:

ListBox1.BeginUpdate()
' Some code here to load many items into the list box.
ListBox1.EndUpdate()

This process tells the ListBox to dispense with routine operations such as painting the screen during the loading process. Load times can be reduced by more than 50% using this technique.

See Additional Tips


Add Your Comment


Greater New Orleans .NET User Group (GNONUG) "KNOW .NET"
Welcome to my world: Where Drastic usually happens. -- Manuel Dennis III (8/1/1991)

 

New Events

  • July 2010 GNONUG Meeting
    Patrick LeBlanc
    Profiling Your DB
    Tuesday, July 13, 2010 6:30pm
    New Horizons New Orleans


  • July GNONUG Meeting
    Steve Andrews will be our guest presenter on Monday, July 13 from 6:30 pm - 9:00 pm. This event is open to anyone interested in .Net.

  • (Speaker Idol) June BRDNUG .Net User
    Sponsored by: Sparkhound

    SPEAKER IDOL Format
    1. 5 speakers.
    2. 15 minutes each.
    3. 3 Grueling judges (Billy Jacobs, Jon Dalberg, Mike Huguet)
    4. Audience will choose the winner.
    5. Great prizes!

    Agenda
    5:45 pm - 6:15 pm: General Introduction/Food and Drinks
    6:15 pm - 7:30 pm: The Competition Will Begin
    7:30 pm - until: Open forum for questions



  •  

    New Posts

  • SharePoint admin/developer
    Posted by md3 on Sunday, April 04, 2010 (PST)

  • Baton Rouge .NET positions
    Posted by md3 on Wednesday, June 24, 2009 (PST)

  • Access
    Posted by md3 on Wednesday, September 19, 2007 (PST)


  •  
    Greater New Orleans .NET User Group "KNOW .NET" GNONUG