Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

make my  form and its controls fit any size screen resolution

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

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