Solved

make my  form and its controls fit any size screen resolution

Posted on 2014-10-14
2
114 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Closing all open child forms. 4 38
Saveas need to save a copy 16 26
Visual Studio .Net 2012 and Crystal Reports 9 43
DataGridView Events ? 3 37
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
A short film showing how OnPage and Connectwise integration works.

932 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now