[dba-VS] Visual Basic 2012 - Change Form & Controls Based On Screen Resolution

Gustav Brock gustav at cactus.dk
Fri Apr 3 02:16:49 CDT 2015


?Hi Paul


If this is a winform application, you should have properties Size.Height and Size.Height for most controls in the properties' pane.

If you mean the code, it is in the FormName.Designer module in the region:


    Windows Form Designer generated code.


like:


    button1.Size = new System.Drawing.Size(75, 23)


But does the client really have smaller screens than all of yours laptops?


/gustav


________________________________
Fra: dba-VS <dba-vs-bounces at databaseadvisors.com> på vegne af Paul Hartland <paul.hartland at googlemail.com>
Sendt: 3. april 2015 04:52
Til: dba-vs at databaseadvisors.com
Emne: [dba-VS] Visual Basic 2012 - Change Form & Controls Based On Screen Resolution

To all,

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.

Thank you in advance for any help on this.

--
Paul Hartland
paul.hartland at googlemail.com<mailto:paul.hartland at googlemail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://databaseadvisors.com/pipermail/dba-vs/attachments/20150403/d1c8d5d3/attachment-0001.html>


More information about the dba-VS mailing list