-
Jul 1st, 2005, 04:01 PM
#1
Thread Starter
Lively Member
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
-
Jul 1st, 2005, 04:06 PM
#2
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 ...
-
Jul 1st, 2005, 04:13 PM
#3
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...
-
Jul 1st, 2005, 04:14 PM
#4
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Jul 1st, 2005, 07:24 PM
#5
Re: How 2 find a "lost" control, i.e. a label ?
 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.
-
Jul 1st, 2005, 09:14 PM
#6
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|