Results 1 to 2 of 2

Thread: Stop control redrawing?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    195

    Stop control redrawing?

    Is there any way to temporarily stop a Spreadsheet Control from redrawing itself whenever I alter the cell contents / formatting? I want to stop it from doing so until the entire table is ready, and then have it refresh just once.

    I had been hiding the control (setting Visible = False) which did the job until it started going wrong - sometimes after hiding the control it won't display properly afterwards.
    Using Visual Studio .NET 2005

  2. #2
    Addicted Member
    Join Date
    Jan 2002
    Location
    Glasgow, Scotland
    Posts
    202

    Re: Stop control redrawing?

    try:

    VB Code:
    1. application.screenupdating = false
    this will disable the screen update..

    then when you want to update the screen set it to true
    if you fail to plan, you plan to fail

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