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. .NET (Core and Framework)
  4. flicker on resizing tabcontrols

flicker on resizing tabcontrols

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpwinformsquestion
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.
  • S Offline
    S Offline
    siegnagel
    wrote on last edited by
    #1

    I've been getting a weird flicker with my TabControl (.NET Windows Forms) when I try and use it in a dynamically resizable window. I can move the window around and it paints fine but resizing it looks pretty bad. Any ideas? Thx, Sieg

    E 1 Reply Last reply
    0
    • S siegnagel

      I've been getting a weird flicker with my TabControl (.NET Windows Forms) when I try and use it in a dynamically resizable window. I can move the window around and it paints fine but resizing it looks pretty bad. Any ideas? Thx, Sieg

      E Offline
      E Offline
      E L Golpe
      wrote on last edited by
      #2

      SYMPTOMS When making a call to TabPage.setSelectedTab() from within an OnSelectedIndexChanged event handler of the parent TabControl, the focus will first go to the user-selected index before returning to the index value set in the setSelectedTab() call. In addition, when returning to the index set in code by the setSelectedTab() call, the children components of the set TabPage will not be visible and Control.setVisible(true) must be used, causing a noticeable flicker. RESOLUTION To work around this problem, call Control.setVisible(true) on the TabPage after the setSelectedTab() call is made. Maybe on the resize event you need to again setVisible(true) to get the flicker to go away? Give it a whirl and see what happens... Practice sesquipedalianism! ;)

      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