Results 1 to 3 of 3

Thread: [RESOLVED] Controls disappearing on different resolutions

  1. #1

    Thread Starter
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Resolved [RESOLVED] Controls disappearing on different resolutions

    Hi all,

    I've built an application which I originally had planned to distribute across a number of computers.

    However, on one of my forms, a combobox disappears when the application is run on a smaller resolution to my development PC.

    The positioning of the combobox, for testing purposes, is like so:
    PHP Code:
    comboBox1.Left label3.Left label3.Width
    This works fine on my development PC, however on a distrobution PC it is nowhere to be seen!

    Tell me theres something blatently obvious that I am overlooking..

    Regards,

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  2. #2

    Thread Starter
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: Controls disappearing on different resolutions

    I have resolved this issue.. but its quite strange.

    I used the Width and Height of each objects ClientRectangle to calculate the position. I also call the .BringToFront method on the combobox to show it properly.

    Why does this need to happen on different resolutions? It seems strange.

    Oh well, I will mark the thread resolved. Thanks anyway guys/gals!

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [RESOLVED] Controls disappearing on different resolutions

    First up, this:
    CSharp Code:
    1. comboBox1.Left = label3.Left + label3.Width;
    would be better as:
    CSharp Code:
    1. comboBox1.Left = label3.Right;
    As for the issue, have you considered a TableLayoutPanel or FlowLayoutPanel. They may or may not be appropriate, depending on your layout.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width