<div dir="ltr">Gustav,<div><br></div><div>They don't have smaller screens, but very limited screen resolution....i.e. I have been developing with a screen resolution of 1280x1024.....which is common on most machines in our head office, however the branches maximum resolution in their display settings are 1280x800 so the bottoms of the forms are sometimes off the screen....now I could quickly redevelop in 1280x800 but I just have the feeling that all branches will not be the same, so I wanted to put some auto code in the application to look at the current screen resolution and resize all forms and controls.</div><div><br></div><div>Paul</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 3 April 2015 at 08:16, Gustav Brock <span dir="ltr"><<a href="mailto:gustav@cactus.dk" target="_blank">gustav@cactus.dk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>​Hi Paul</p>
<p><br>
</p>
<p>If this is a winform application, you should have properties Size.Height and Size.Height for most controls in the properties' pane.</p>
<p>If you mean the code, it is in the FormName.Designer module in the region: </p>
<p><br>
</p>
<p>    Windows Form Designer generated code.</p>
<p><br>
</p>
<p>like:</p>
<p><br>
</p>
<p>    button1.Size = new System.Drawing.Size(75, 23)</p>
<p><br>
</p>
<p>But does the client really have smaller screens than all of yours laptops?</p>
<p><br>
</p>
<p>/gustav</p>
<p><br>
</p>
<div style="color:rgb(33,33,33)">
<hr style="width:98%;display:inline-block">
<div dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><b>Fra:</b> dba-VS <<a href="mailto:dba-vs-bounces@databaseadvisors.com" target="_blank">dba-vs-bounces@databaseadvisors.com</a>> på vegne af Paul Hartland <<a href="mailto:paul.hartland@googlemail.com" target="_blank">paul.hartland@googlemail.com</a>><br>
<b>Sendt:</b> 3. april 2015 04:52<br>
<b>Til:</b> <a href="mailto:dba-vs@databaseadvisors.com" target="_blank">dba-vs@databaseadvisors.com</a><br>
<b>Emne:</b> [dba-VS] Visual Basic 2012 - Change Form & Controls Based On Screen Resolution</font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">To all,
<div><br>
</div>
<div>Been working on project for a few weeks now, all presentations from my laptop and on other in-house laptops worked fine, however went to branch yesterday for a demo and forms are too big for the maximum screen resolution they have...Now I think I am going
 blind, I can see some code for changing the form size, but not all the controls etc....Can anyone point me in the right direction please.</div>
<div><br>
</div>
<div>Thank you in advance for any help on this.<br clear="all">
<div><br>
</div>
-- <br>
<div>Paul Hartland<br>
<a href="mailto:paul.hartland@googlemail.com" target="_blank">paul.hartland@googlemail.com</a></div>
</div>
</div>
</div>
</div></div></div>
</div>
</div>

<br>_______________________________________________<br>
dba-VS mailing list<br>
<a href="mailto:dba-VS@databaseadvisors.com">dba-VS@databaseadvisors.com</a><br>
<a href="http://databaseadvisors.com/mailman/listinfo/dba-vs" target="_blank">http://databaseadvisors.com/mailman/listinfo/dba-vs</a><br>
<a href="http://www.databaseadvisors.com" target="_blank">http://www.databaseadvisors.com</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Paul Hartland<br><a href="mailto:paul.hartland@googlemail.com">paul.hartland@googlemail.com</a></div>
</div>