473,385 Members | 1,620 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,385 software developers and data experts.

A Resolution Independent MDI application

Hi friends,

Can any one help me to code the MDI application as Resolution Independent using c# .NET?

Follwoing is the code which, I have implemented. But it was working partially for MDI application and working perfect for SDI Application.

int widthRatio = form.ClientRectangle.Width * 100 / startW;
int heightRatio = form.ClientRectangle.Height * 100 / startH;
DefLocation dl2 = (DefLocation)hash[ctl];
Point pnt = new Point((dl2.getDefCX() * widthRatio / 100), (dl2.getDefCY() * heightRatio / 100));
ctl.Width = dl2.getDefW() * widthRatio / 100;
ctl.Height = dl2.getDefH() * heightRatio / 100;
ctl.Location = pnt;
Mar 27 '07 #1
0 940

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

Similar topics

4
by: Rex_chaos | last post by:
hi all, I am sorry for the post first for it's a very popular question here. However, I have seen thousand of post here but no one can tell me HOW TO MAKE A HOMEPAGE RESOLUTION-INDEPENDENT. I have...
1
by: Jaco | last post by:
Hey, Do someone have any ideas to make my application resolution independent. Or some links to articles. Thanks, Jaco
2
by: Steve | last post by:
I'm trying real hard to set the printer resolution for a PrintDocument. It appears that the printer is already set to 300 x 300 dpi, which is JUST what I want. But the Margins and PrintableArea...
3
by: Pure Heart | last post by:
hi i have 3 questions 1. I usa high resolution when developing but i want my application to look good even on low 800x600 resolution so whats the solution for that ? 2. I have a list view...
0
by: gujarsachin2001 | last post by:
Hi, Friends, I m using frames in my web application on 1024*768 resolution . I have frame page in which I am setting rows="19%,81%" (also I tried with 19%,* and 200px.*). It is showing evrything...
1
by: Greoasy | last post by:
I have an asp.net webapplication,designed in laptops having resolution 0f 1280x800. Now the same application when i run on a Desktop with a different resolution the display of the screen is...
4
by: vishwaskothari | last post by:
Hi, Is there any way that the GUI can be made independent of the resolution? And how to load a form in VB in its Maximize position? regards vishwas
6
by: John | last post by:
Hi How can I develop a screen resolution independent winform app in vb.net? Do I need a third party tool to achieve this? Thanks Regards
2
vdraceil
by: vdraceil | last post by:
Hi..i work with vb6.I've created an application in 1024*768 resolution.When it is run in 1280*728 resolution,the controls in it are misaligned(not exactly as what i designed). Does anyone know how...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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.