How to maximize forms?
What i mean is that, if i maximized my form. The objects inside will be maximized too and will be on the same position. Objects such as Tab Control, Tree View, List View and other objects.
Thanks.
How to maximize forms?
What i mean is that, if i maximized my form. The objects inside will be maximized too and will be on the same position. Objects such as Tab Control, Tree View, List View and other objects.
Thanks.
Have you looked at the dock property of each control? If your needs are more complicated, you could handle the forms resize event and adjust each control according to the new size.
I think he wants to scale the controls on the form as well.
@Reverend Jim
Yes, that is what i want. How to do that?
I can't give you an all-in-one solution. It gets tricky because you have to recalculate the size and position of every control, reset every font for every text element and account for the fact that the aspect ratio of the maximized form may not match the aspect ratio of the unmaximized form.
Why would you want to do this?
I know now what to do. By using anchor. :)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.