<div><span class="gmail_quote">On 12/4/06, <b class="gmail_sendername">Martin Maly</b> <<a href="mailto:Martin.Maly@microsoft.com">Martin.Maly@microsoft.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">I suspect that the same code written in VB/C# would behave the
same way. This is most likely behavior of Windows Forms. Not being a winforms
expert, I can't tell for sure whether this is correct behavior or a bug in
Winforms…</span></p></div></div></blockquote></div>I created a similar C# app and can confirm that it behaves the same way. If this is not a bug, it is extremely counterintuitive behavior. I could see the button getting truncated by the menu if I added the button with Fill first, then added the menu. But that is the order that works fine. The one that truncates is when you add the menu, then add the button. Whatever it is, it certainly isn't nice. :-(
<br><br>-- <br>Patrick K. O'Brien<br>Orbtech <a href="http://www.orbtech.com">http://www.orbtech.com</a><br>Schevo <a href="http://www.schevo.org">http://www.schevo.org</a><br>Louie <a href="http://www.pylouie.org">
http://www.pylouie.org</a>