Results 1 to 6 of 6

Thread: Me.RESOLVED: How 2 find a "lost" control, i.e. a label ?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Posts
    64

    Me.RESOLVED: How 2 find a "lost" control, i.e. a label ?

    I was moving some stuff around and in the process have lost a couple of labels. They still exist and I can get the Top and Left coordinates from the properties listing. It must be under another control.

    On one of them I just renamed the missing label (XXX) and recreated the lost one - but that leaves the XXX label there. How can I find it and remove it? I don't seem to be able to delete it from the properties window.

    Are the Top and Left coordinates the screen or form coordinates?

    I tried to search the forum but nothing came back to my queries.

    Thanks

    jj2
    Last edited by jj2; Jul 1st, 2005 at 09:16 PM. Reason: Resolution

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: How 2 find a "lost" control, i.e. a label ?

    From the property window: select your "missing" control from the dropdown box
    "Go back" to your form and do whatever you need to ... "missing" control will be selected so if you press CTRL+ARROW (any arraow) it will move control arround. It could also be under another control so you might need to set ZOrder ...

  3. #3
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: How 2 find a "lost" control, i.e. a label ?

    Another option if what RB suggested doesn't work for you (although I cannot imagine why it would not...)...

    Use NOTEPAD to EDIT the .FRM file - you will find the CONTROL listed in that file and can change the values if you want to move it around...

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: How 2 find a "lost" control, i.e. a label ?

    You can also just change the top/left properties to move it into view to a location that has no controls in it. Maybe 0, 0 would
    work for you. Rember to write down the location if you need to place it back.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: How 2 find a "lost" control, i.e. a label ?

    Quote Originally Posted by szlamany
    ... although I cannot imagine why it would not...
    Sometimes it is really though to find "missing" control - especially windowless such label.
    The problem might be the fact that control resides inside some container and if there are many containers on top of each other (this is one widely used technic) then you may have a hard time to find it.
    What I do in such cases (when "multilayer form is needed) is setting TAG property to indicate name of a container - much easy to find and/or navigate in design. Also locking controls is my "normal habbit" during design - you can't move any control without using CTRL+ARROW so it's safe.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Posts
    64

    Re: How 2 find a "lost" control, i.e. a label ?

    Lots of good ideas -- thanks guys. I did find and eliminate the unwanted controls. I'll mark this resolved.

    Thanks

    jj2

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