Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Implementing BeginUpdate in form?

Implementing BeginUpdate in form?

Scheduled Pinned Locked Moved Visual Basic
questioncsharp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    matsnas
    wrote on last edited by
    #1

    Hi! Have created an OnScreenKeyboard in a VB.NET winform but the rendering of the buttons is so slow that when selecting a new keyboard layout you see the buttons disapear and come back one at the time. Although it's kind of a cool effect, it's not what I want for this prjoject. I'd like to implement a BeginUpdate and EndUpdate functions. Do I override the onpaint event or how can I achive this? -- modified at 3:16 Monday 20th February, 2006

    D 1 Reply Last reply
    0
    • M matsnas

      Hi! Have created an OnScreenKeyboard in a VB.NET winform but the rendering of the buttons is so slow that when selecting a new keyboard layout you see the buttons disapear and come back one at the time. Although it's kind of a cool effect, it's not what I want for this prjoject. I'd like to implement a BeginUpdate and EndUpdate functions. Do I override the onpaint event or how can I achive this? -- modified at 3:16 Monday 20th February, 2006

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You can try using the Form's SuspendLayout and ResumeLayout methods. Call SuspendLayout, add all your controls to the Forms Controls collection, then call ResumeLayout. You've run into the problem with using LOTS of controls on a form. They're slow to create and draw. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups