473,387 Members | 1,502 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

automatic resizing

Hi all,

I am using an MDI Container for the creation of my app but I need to automatically resize my controls according to the size of the child form.

If I set the Anchor properties of all the controls (a datagridview, a textbox and two buttons), the end result is nowhere near what I actually need cause the items just resize without keeping their positions.

Any ideas please???

Thanks
Aug 14 '09 #1
2 2968
tlhintoq
3,525 Expert 2GB
Use the control's location and size properties.
Place the first control in the upper left corner (or where ever you consider home)
Size it.
Place the next control's location 3 pixels to the right of the first control's bounds.right property.
and so on
and so on
and so on
Aug 14 '09 #2
GaryTexmo
1,501 Expert 1GB
Anchor should work, but it's a touch tricky and it depends on what you actually want to accomplish with your control placement.

You've described your datagridview, textbox, and two buttons, but how are they organized and how do they mess up when you move them? I was able to put together a form with those controls and have it resize with everything coming out normally using just anchor, so I'm guessing you've got something different than me?

I have things set up as follows...

DataGridView
TextBox
Button1 Button2

... and anchored as follows...

DataGridView - All edges
TextBox - Left, Right, and Bottom
Button1 and Button2 - Bottom and Right
Aug 14 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Weng kin | last post by:
Hi everyone, I have a problem trying to load an image without the image resizing itself to fit into the window. My simple javascript is as follows: function viewImage(filename) { features =...
10
by: riki | last post by:
Hi, i have a big problem...i'm using one jscript for resizing of all of my pics in popUp...in main html i'm having many little pics and clicking on them they open in popUp and resize to larger...
28
by: joe | last post by:
I have a simple .NET application with two or three listViews which are filled with icons and when the user click on the proper item, they display the related images. I use "image = null ; " for all...
2
by: Vaughn | last post by:
Where can I get information on automatic resizing of controls when the form changes size (eg. if I dynamically increase the size of my form, the listview inside should automatically increase in...
11
by: Sharon | last post by:
I'm writing a new control derived from UserControl. I need to get an event when the control is done resizing. I tried the Resize, SizeChanged, Move and the Layout events and I also tried to...
2
by: Gabriele Bertolucci | last post by:
I hope someone has the magin wand within reach. I would like if there exists a way to avoid VBA window automatic resizing after you press F1 key in the code window. It's a really wearing...
1
by: yogesh.shahane | last post by:
Hi all, I have a screen containing 2 forms.On resizing the screen the bottom form is getting submitted automatically though i have not added any onResize functioanlity.Please let me know what...
9
by: dli07 | last post by:
Hello, I'm trying to convert a piece of code that creates a dynamic vertical resizing bar in a table from internet explorer to firefox. It's based on a post from...
10
by: mishrarajesh44 | last post by:
hii all, I am facing a problem currently.. i have a script for image uploading and resizing.. the image uploading takes place properly for every size images.. but, the resizing works for...
4
by: Rob | last post by:
If you allow the user to Maximize a form, is there a way to automatically enlarge each control on the form in the same proportion ?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.