This Control is beyond Screen.Height at design time
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: This Control is beyond Screen.Height at design time

  1. #1
    Join Date
    Dec 2014
    Posts
    20

    This Control is beyond Screen.Height at design time

    I have an array of 91 small Labels, grouped together in a 9x10 block at design time,
    which are deployed otherwise at runtime.
    But there's a gap: somehow Label #14 has escaped the boundaries of the screen!
    I've used a MsgBox to query where #14 is initially located,
    and it says #14's Top is at 45,545! No, that's not a typo.
    (Screen.Height = 9,216 in this case.)
    Further complication: #14 is AutoSize = True, but I want them all to be AutoSize = False,
    a property that can't be changed at runtime.
    I don't have a clue as to why this happened.
    Is there a way to retrieve #14 or delete it and make a new one?
    (I suppose I could make just the first Label at design time
    and use ReDim to create the others at runtime,
    but the old #14 would still be stranded out there,
    so I would have to change the Name of the array, wouldn't I.)

  2. #2
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,259

    Re: This Control is beyond Screen.Height at design time

    You can select it in the IDE from the drop down above the properties window and change the settings in the property pane for it as you wish
    Always use [code][/code] tags when posting code.

  3. #3
    Join Date
    Dec 2014
    Posts
    20

    Re: This Control is beyond Screen.Height at design time

    Quote Originally Posted by DataMiser View Post
    You can select it in the IDE from the drop down above the properties window and change the settings in the property pane for it as you wish
    A dropdown above the properties window! Who knew? Thanks, DataMiser, you are a genius! Happy New Year!

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)