Re: Odd behavior with WindowState

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"AMercer" <AMercer@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:136B10DA-8C75-4DBB-80B9-925E39261311@xxxxxxxxxxxxxxxx
My earlier post stated that setting Visible to true will force a draw in
the
load event. The above ControlBox assignment is a second case. I assert
that there are more double draw cases, and I don't know what they are, so
don't ask me to dig out any more. Knowing two leaves me uncertain about
the
whole picture, and if I come up with a third, I will still be uncertain.
The
burden is not on me to do this research, testing, and documentation, it is
on
Microsoft. Nowhere in the documentation about Visible and ControlBox is
the
idea of an immediate draw discussed. Also, please don't tell me that I
should set ControlBox in the designer. It will probably fix this problem,
but the documentation gives no reason to prefer the designer over code. I
see no merit in replacing my workaround (with no basis in the
documentation)
with a 'do it in the designer' workaround (also with no basis in the
documentation).

As far as the load event goes, the double draw phenomenon is what the
workaround addresses. So, once more and with gusto, I stand by visible
false
at the top and true at the bottom. It takes care of all of the double
draw
behaviors, including those that I know about and those that I don't know
about. The workaround has never failed me, although it sounds like it is
not
helping the OP solve his problem. FYI, I started using this workaround a
while ago, back in the vs2003 fw1.1 days. One could argue that it is time
revisit it - against that, this roof ain't broke, so why fix it?

Fair enough, although I still think that applying a workaround to *every*
form for something that I have not encountered in 6 years of dot net
programming is unecessary.



.



Relevant Pages

  • Re: Odd behavior with WindowState
    ... problem than apply a workaround to every form whether it needs it or not. ... a maximized draw ... The above ControlBox assignment is a second case. ... Nowhere in the documentation about Visible and ControlBox is the ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Subtle improvement to sequence diagrams....Re: Web based sequence diagram generator
    ... documentation. ... Make the horizontal event lines with a gentle downward slope... ... And whenever I can draw a diagram with crossing event lines like that, ...
    (comp.object)
  • Re: Why make things difficult?
    ... I have seen kids using it productively without help. ... So I switched to Inkscape which has to be the least intuitive drawing ... I have not been able to figure out how to draw ... The documentation says "to play with them at your leisure". ...
    (Ubuntu)
  • Re: Can some expert tell me how to put a PNG in a Button?
    ... luck. ... There is no documentation, Tutorial, Post or any kind of information abut how to draw a Transparent PNG image on a CButton or CBitmapButton. ...
    (microsoft.public.vc.mfc)
  • Re: multiprocessing and Tk GUI program (wont work under Linux)
    ... I have tried your suggestion, making a function rather than a method ... According to the documentation, ... the developer of multiprocessing module can try the test ... but did you try making 'draw' a function and not a ...
    (comp.lang.python)