.NET

Reply
Distinguished Contributor
Patrick Johnson
Posts: 229
Registered: ‎04-26-2005
Message 1 of 4 (74 Views)

dialog boxes

74 Views, 3 Replies
11-20-2006 05:39 PM
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
*Norman Yuan
Message 2 of 4 (74 Views)

Re: dialog boxes

11-21-2006 06:02 AM in reply to: Patrick Johnson
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
Distinguished Contributor
Patrick Johnson
Posts: 229
Registered: ‎04-26-2005
Message 3 of 4 (74 Views)

Re: dialog boxes

11-22-2006 05:17 AM in reply to: Patrick Johnson
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
*richard
Message 4 of 4 (74 Views)

Re: dialog boxes

11-27-2006 02:06 PM in reply to: Patrick Johnson
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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!