473,585 Members | 2,552 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Arranging windows

I'm just wondering if there are any clever mathematicians out there.

My VB2005 program consists of a number of panels on a form. Here's the
rules:

The number of panels will be variable
The screen size is fixed
You can change the size of each panel, but it's aspect ratio must always be
1.3:1 (each panel hols a photo) and each panel should end up the same size.

I need an algarithm to determine the best way of arranging these panels on
my form. This is identical to the microsoft arrange panels in a tile format
if I was using an MDI form - which I am not.

Anyone any idea how to do it? This has been bugging me for ages.

Thanks

-Jerry
Jul 2 '07 #1
2 1122
Hi Jerry -

You might be better off looking at the TableLayoutPane l Control.
Create a single row, and then add columns to it at run time, adding
inyour panels inside each cell with Dock set to Fill.

This will allow you to offload the "higher math" onto a proven
solution.

Good luck,

-Mark

Jul 2 '07 #2

<ma*********@bi naryswitch.comw rote in message
news:11******** **************@ n60g2000hse.goo glegroups.com.. .
Hi Jerry -

You might be better off looking at the TableLayoutPane l Control.
Create a single row, and then add columns to it at run time, adding
inyour panels inside each cell with Dock set to Fill.

This will allow you to offload the "higher math" onto a proven
solution.

Good luck,

-Mark
Thanks Mark. I hadn't spotted that control. Looks useful.

-Jerry
Jul 5 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
15215
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000 Personal disk from the SQL Server 2000 Enterprise kit as this is reported here on the MSDN web site to be the version that is supported on Windows XP. ...
3
2202
by: Ironside | last post by:
Can someone give me a basic script example for arranging thumbnails on a page. I have always put them in tables that CSS is obviously better. Also, I like to put writing underneath the thumbnails as well, how do I get around that? Thanks in advance
3
1108
by: ltt19 | last post by:
Hi folks, I'm new to asp.net, and I'm having a problem. I'm not used to the FlowLayout mode, so I'm using the GridLayout. I have a Label, thats loads a file and below this Label, comes a Button, however the button needs to be exatly below the end of the text, which height diversifies. How I can put this Button or any other Objects below...
1
3444
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. I'm having trouble getting the code that I've written to work, can anyone shed some light as to where I'm going wrong. The program has been written to do the following tasks: - Select remote server - Select from two specific services
0
3924
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. The program I'm trying to develop needs to be able to do the following: - Select remote server - Select from two specific services - Check the status of the server
0
844
by: Jesse Aufiero | last post by:
..Net offers the ability to manage child windows in a grouped tabbed structure. This logical structure is critical for when many child windows are opened at the same time. What I'm wondering is if .Net (or even an existing utility program) allows you to manage other windows in a similar fashion. For example, if I am chatting with 40...
2
1851
by: michael | last post by:
Hi All, I'm trying to achieve an "ideal" of arranging the thumbnails on one of my sites using only styles and divs, rather than a table. I'm well practised with Divs etc, but a solution that works properly eludes me here. In particular there are two problems.. 1). There are graphical glitches in both IE and Firefox/opera, some of the...
7
4512
by: Bill Nguyen | last post by:
This has been posted before but received no response: I need to arrange window screens on the total area of a mulitple-mopnitor desktop. As an example, below is the bound info for my 2-monitor PC: Device Name: \\.\DISPLAY1 Bounds: {X=1152,Y=0,Width=1152,Height=864} Primary Screen: False
0
1159
by: aparsons | last post by:
I have an MDI application in which I want the user to drag the child forms to put them in order. I will have to write some mouse handling code for that I know. However when you click on the child forms, before you even capture the mouse , they change their order! I want them to stay still and move only when the code tells them to. Try it! ...
0
7908
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8199
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8212
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6606
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5389
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3835
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1175
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.