Panel populating / Flickering

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jesper Denmark

    #1

    Panel populating / Flickering

    Hi,

    Accordingly to an item selected in a tree view I populate
    a panel with different controls using panel.controls. add
    (). This works almost fine - the only thing is that it
    flickers a bit when the different controls are move
    around on the panel due to docking properties. Is there a
    way to populate the panel and then show it.

    Would a way be to create a panel, populate it and then
    attache it to its control.

    best regards Jesper.
  • Greg Ewing [MVP]

    #2
    Re: Panel populating / Flickering

    Jesper, yes, that would be a good way of doing it. You could also use
    SuspendLayout() and ResumeLayout() to stop the layout logic of your control
    while you are manipulating it. (This is what VS.Net uses when
    autogenerating forms built using the Form designer)

    --
    Greg Ewing [MVP]
    IT support built exclusively for nonprofits. 25 years of managed IT, help desk, and cybersecurity - so your team can focus on your mission.




    "Jesper Denmark" <anonymous@disc ussions.microso ft.com> wrote in message
    news:14d4601c3c 3d7$072cfe40$a6 01280a@phx.gbl. ..[color=blue]
    > Hi,
    >
    > Accordingly to an item selected in a tree view I populate
    > a panel with different controls using panel.controls. add
    > (). This works almost fine - the only thing is that it
    > flickers a bit when the different controls are move
    > around on the panel due to docking properties. Is there a
    > way to populate the panel and then show it.
    >
    > Would a way be to create a panel, populate it and then
    > attache it to its control.
    >
    > best regards Jesper.[/color]


    Comment

    Working...