Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on VB.NET windows application. In master form I am calling two forms together. But while changing the screen resolution the forms are not displaying correctly. I want to display this form to fit screen always. In master form I am calling form like this:

VB
  Dim frmVE As VisitorInfo
    Dim frmVX As VisitorExitsign

in ToolStripMenuItem_Click i have a code like this
frmVX = New VisitorExitsign
        frmVX.Location = New Point(781, 0)
        frmVX.MdiParent = Me
        frmVX.Show()

        frmVE = New VisitorInfo
        frmVE.Location = New Point(0, 0)
        frmVE.MdiParent = Me
        frmVE.Show()


My system resolution is 1366 X 768. But once I installed my application on client side, there is a different resolution. That time the forms don't fit in the MDI parant form..
I want to fit my forms in any resolution. How can I do that?
This is the proper image link http://i.stack.imgur.com/XquHw.png[^]

This is the changed resolution image link: http://i.stack.imgur.com/0PSyV.png[^]
Posted
Updated 18-May-14 5:03am
v2
Comments
[no name] 18-May-14 8:33am    
That you are hard coding location values for your forms would be your first clue that at different resolutions, the location for your form is going to be different.
jaseembinbacker 18-May-14 9:43am    
sir..in this case what i have to do? sir did u see my application images in that link?

1 solution

We are not sure what you expect us to do for you because you designed the forms for a screen 1366 wide.

Clearly the clients isn't that wide looks to be about 1024.

There is nothing wrong with your forms your base form simply doesn't fit on the client desktop so it puts a scrollbar in it down the bottom look carefully just above the word status.

Your options are obvious and depends on the key thing ... GET THE WIDTH OF THE SCREEN FIRST !!!!!!!

Armed with the screen width you can do any of the following

1) Change the font and box sizes to suit the width of the screen so as to scale it
2) Design a different form for the smaller screen and load whichever form is right for screen size
3) Design the form for the smallest screen you expect it to work on

There your options so choose one and fix it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900