-
May 11th, 2009, 05:31 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] property: control size changing according to forms size?
Hello,
I am after a property that makes a control (textbox, datagrid or other) move according to the forms size. Because some of the controls I got does that, and I really don't want it. I've been looking at them but could not find it.
If somebody knows what property it is please post.
-
May 11th, 2009, 05:42 AM
#2
Re: property: control size changing according to forms size?
Take a look at the Anchor properties.
-
May 12th, 2009, 04:20 AM
#3
Thread Starter
Fanatic Member
Re: property: control size changing according to forms size?
anchor set to none on some
with my datagrid for example I got anchor set to top and left, if I set anchor to none it jumps down when I run it
annoying me
Last edited by MrtforCode; May 12th, 2009 at 04:24 AM.
-
May 12th, 2009, 05:04 AM
#4
Re: property: control size changing according to forms size?
You should pretty much always have a control anchored to at least one side. The default is Top and Left, so that means that the control will not move or resize as its container resizes. I suggest that you create a brand new project with one form and one Button on that form. Experiment with the Anchor set to different values and then run the project and resize the form to see what happens to the Button. It should be quite easy to see how Anchor works from that.
-
May 12th, 2009, 05:38 AM
#5
Thread Starter
Fanatic Member
Re: property: control size changing according to forms size?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|