That sounds like such a basic thing. I find it incredulous that Visual Studio can grow controls automatically but can not maintain a constant right margin! I suppose I can handle writing code to tweak these positions for the two events you mentioned. They have so many properties like margin and dock that sound like they should take care of this, I thought I was just getting confused between how to set the correct combination. However, if I manually set the placement of the "Perform OCR" button, I would probably need to go back and readjust the position of the "Browse..." button and readjust the size of the "Filename" text edit field as well. As I consider this, I should need to subtract 14 from the x location properties of these two buttons and from the x size of the text box after the standard code is executed for resize events. Do the event handlers you mentioned get performed after the normal processing, before the normal processing, or do I need to explicitly call the normal event processing within my event handlers?
Don Marang -------------------------------------------------- From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx> Sent: Thursday, March 25, 2010 3:43 AM To: <programmingblind@xxxxxxxxxxxxx> Subject: Re: "Sticking" buttons to the Right Margin
Hi Don,I guess the simple but boring answer is to read the window size in the form's Resize or ResizeEnd event and then code your spacing calculation on the fly within the same event.I did think that a control's margin property was intended to keep them from overlapping, but I can't see how to make them honour the setting.Martin----- Original Message ----- From: "Donald Marang" <donald.marang@xxxxxxxxx>To: <programmingblind@xxxxxxxxxxxxx> Sent: Thursday, March 25, 2010 12:24 AM Subject: "Sticking" buttons to the Right MarginIn my QuickOCR Visual Basic .Net application I wrote in Visual Studio 2008, I have not been able to get the right side alignment correct. My last message had a little better description of the application. I have the source code and more information available at:Don Marang __________View the list's information and change your settings at http://www.freelists.org/list/programmingblind
__________View the list's information and change your settings at http://www.freelists.org/list/programmingblind