Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

Hi,

 

I have a form that displays fine when loaded without setting it's mdiParent property. However when i set the property the button height increases making the form appear fatter (it seems only to be buttons that do this)

 

- there's no code that i've written that sets the button height anywhere

- there's no window designer generated code that sets the button height (it uses the default 23,75 values

- i set a handler on button.resize (which gets called) and i can't stack trace it since it's called from "<non user code>"

 

i'm sure i must be missing something simple - but i can't for the life of me figure it out. Any light shed on this situation would be greatly appreciated.

 

I just discovered that if i set the mdiParent property after the form.show() call, then it's all good, but i set the mdiparent property before then the height of all sizable controls increases by a few pixels.

Edited by bondsac
Posted
Hi,

 

I have a form that displays fine when loaded without setting it's mdiParent property. However when i set the property the button height increases making the form appear fatter (it seems only to be buttons that do this)

 

- there's no code that i've written that sets the button height anywhere

- there's no window designer generated code that sets the button height (it uses the default 23,75 values

- i set a handler on button.resize (which gets called) and i can't stack trace it since it's called from "<non user code>"

 

i'm sure i must be missing something simple - but i can't for the life of me figure it out. Any light shed on this situation would be greatly appreciated.

What is the anchor property set to for the buttons?

Posted (edited)
they were all topleft, i just set them all to "none", there is little difference and the buttons still expand, but a couple of them are expanding but only by 1 or 2 pixels this time. (almost unnoticable) Edited by bondsac

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...