.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

dialog boxes

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
221 Views, 3 Replies

dialog boxes

Can someone take a look at the attachment. It is the same dialog box from two different computers.

The top one is how it is intended to show up, the bottom one appears to be coming in helter skelter. What seems to be messing up is what I have been trying to control at run time. Been setting the width and height. Especially the panels, that have all the scroll bars on the bottom picture.

What is the best approach to take tokeep this from happening?
Is it just a property setting?
Instead of setting width and height properties, do I need to dfine anew size?

Any help would be appreciated.

thanks

pat
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

Try to set Control.Anchor, or Control.Dock, or the combination of both
properly.

wrote in message news:5402315@discussion.autodesk.com...
Can someone take a look at the attachment. It is the same dialog box from
two different computers.

The top one is how it is intended to show up, the bottom one appears to be
coming in helter skelter. What seems to be messing up is what I have been
trying to control at run time. Been setting the width and height.
Especially the panels, that have all the scroll bars on the bottom picture.

What is the best approach to take tokeep this from happening?
Is it just a property setting?
Ins
tead of setting width and height properties, do I need to dfine anew size?

Any help would be appreciated.

thanks

pat
Message 3 of 4
Anonymous
in reply to: Anonymous

Thanks for the answer, here is what I did to make it work.
Since I was adding the controls at run time they were not part of the initializing of the form, so I added these two lines.
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font

It fixed the controls.


thanks

pat
Message 4 of 4
Anonymous
in reply to: Anonymous

I'm trying to do something similar to this could you show me your code?
wrote in message news:5403906@discussion.autodesk.com...
Thanks for the answer, here is what I did to make it work.
Since I was adding the controls at run time they were not part of the
initializing of the form, so I added these two lines.
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font

It fixed the controls.


thanks

pat

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost