Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27071

Chilkd form still jumping on resize

$
0
0
This is driving me nuts. I posted this question not long ago and thought it was resolved but it is not. I can't figure out why this is happening but more importantly, I can't figure out how to make it stop. Something happened to my VB6 installation a few weeks ago and it will no longer register or use active X files. I wiped the computer, reloaded Windows 7 (twice), ran the updates but none of my programming applications will open without serious errors and missing controls. So I decided to migrate to VS2010 ultimate. I'm in the process of converting all my software to VB2010 ... but some things do not seem to work properly and the behavior I am finding in VB2010 did NOT occur in VB6. Anyway, that's a bit of background ...

I have a parent MDI form and a child form. The MDI form has a menu and a button bar while the child has only a button. The child is set to open maximized so as to fill the parent container regardless of what size it is set to. Seems to work BUT .. the child form is NOT maximized when it opens ... when you click on a border of the parent to resize the form THEN it will jump and maximize - not before. The button is set in the upper left corner of the child form. It can barely be seen when the program opens .. but do the slightest resize and the button will jump down into full view. This cannot happen in my production piece. I suspect it has something to do with the menu bar/button bar because when those are not there the child form shows a control box regardless of the property settings for it. This I suspect is due to the child form being maximized but I gather from research on the net that there is nothing that can be done about this behavior. However there must be a way to get the child to start up in the position it jumps to when the parent is resized ...

I've included a very basic program to illustrate this.

Can anyone help me with this? This is so annoying that I've been starting to study C# and am about ready to abandon basic after working with the language in various iterations since 1970.

Thanks in advance.
Ken
Attached Files

Viewing all articles
Browse latest Browse all 27071

Trending Articles