Glad I could help. :) A control that is unanchored on two opposite sides
will stay proportionately the same distance from both of those sides. So if
you anchor a control to bottom, but not to left or right (or top), it will
always stay the same distance from the bottom of its container, and stay the
same proportionate distance from the left and right. Does that make sense
(or did it sound as confusing as it did when I just re-read it)? :)
-----
Lee
[quoted text, click to view] "eBob.com" <eBob.com@totallyfakeisp.com> wrote in message
news:7gp2n0tgpj0d3i16b4rsg9kokci5h35kg7@4ax.com...
> Thanks Lee. That worked very nicely. I am new to this and hadn't
> noticed the Visible property before. And also didn't know that a
> centered unanchored control in a panel would remain centered as the
> panel was resized. Neat!
>
> Thanks again. Bob
>
>
> On Sat, 16 Oct 2004 13:47:44 -0400, "Lee" <nobody@nowhere.com> wrote:
>
>>Could you put the button IN the panel, center it, clear its Anchor
>>property
>>(uncheck the left, top, right and bottom) so it stays centered, and then
>>set
>>its Visible property to False? Then when you want the button to appear,
>>just set its Visible property to True.
>>
>>Would that work?
>>
>>-----
>>Lee
>>
>>"eBob.com" <eBob.com@totallyfakeisp.com> wrote in message
>>news:ubh2n01arb7jmm1ocqukfmlij285cd8v1l@4ax.com...
>>>I have a panel on my form which is used for a scatter plot. Any one
>>> of several user interactions, including enlarging the form, can
>>> invalidate the graph. When the graph becomes invalid I fill the
>>> entire panel with a gray box. What I'd like to do now is put a button
>>> on top of the gray box which says "When You're Done Screwing Around
>>> Click Here to Cause the Graph to be recalculated and redrawn". When
>>> the button is clicked the graph is recalculated and redrawn and the
>>> button is removed.
>>>
>>> What's the BEST way to do this? Should I use the IDE and just drag a
>>> button onto the panel and then, in code, manipulate the z-order so
>>> that the button is in front of or behind the panel? If I want to keep
>>> the button centered in the panel where's the best place to do that?
>>> In the panel's Resize handler?
>>>
>>> I expect I could fumble around and eventually get this working, but
>>> I'd appreciate your help so that I do it RIGHT.
>>>
>>> Thanks, Bob
>>
>