Solved

make my  form and its controls fit any size screen resolution

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 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

11 Experts available now in Live!

Get 1:1 Help Now