Solved

make my  form and its controls fit any size screen resolution

Posted on 2014-10-14
2
115 Views
Last Modified: 2014-10-16
Hi Experts
I am developing my application on screen 1024 x 768
I would like to fill the whole screen on other PC with  different resolutions.
Please help
Thanks
0
Comment
Question by:b001
2 Comments
 
LVL 28

Assisted Solution

by:sammySeltzer
sammySeltzer earned 250 total points
ID: 40381190
You didn't show what you  have so far but you can do one of two things:

1, use stylesheet with fixed positioning:

<style type="text/css">
#entireScreen
{         
    position:fixed;
    top:0px;
    bottom:0px;
    left:0px;
    right:0px;
}
</style>

Open in new window


Then
<body>
   <div id="entireScreen">
rest of html code
</div>
</body>

Open in new window


OR

Use JavaScript:
<script type="text/JavaScript">

        function FillScreen()
        {
            document.getElementById(entireScreen).style.Width= window.innerWidth +'px';
        }
        window.onresize = FillScreen;
        FillScreen();
    </script>

Open in new window


Something like these two, I think will do it
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 250 total points
ID: 40382209
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Set value of dynamically created checkboxlist 2 34
VB.Net - KeyPress Event 4 36
VB.NET (2008) - Refactoring Question 2 21
HTML - Color not displaying correctly in EMAIL. 6 38
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question