•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 456,515 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,766 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser: Programming Forums
Views: 508 | Replies: 0
![]() |
•
•
Join Date: Aug 2007
Location: Gunnison, Colorado
Posts: 57
Reputation:
Rep Power: 2
Solved Threads: 1
I need to discover the names C# is using for component instances, both during design and run. The Designer assigns names, and the programmer can alter them during design, but the effect is to add names in the code. Since Component classes do not have a 'Name' property as such, it is unclear if there is any way to find out what the 'name' of the object is.
For the record, the reason I need this is for error control at design time. I have components which can be linked in a heirarchy by setting a property in one to point to another. So, Component1 may be the 'parent' of Component2 and so on down the chain, but it should not be legal for the chain to form a loop. If the programmer should happen to create a circular chain, I need to report the problem and list the names of the components forming the chain. And, since C# components don't seem to have a Name property, I can't return a meaningful error.
For the record, the reason I need this is for error control at design time. I have components which can be linked in a heirarchy by setting a property in one to point to another. So, Component1 may be the 'parent' of Component2 and so on down the chain, but it should not be legal for the chain to form a loop. If the programmer should happen to create a circular chain, I need to report the problem and list the names of the components forming the chain. And, since C# components don't seem to have a Name property, I can't return a meaningful error.
![]() |
•
•
•
•
•
•
•
•
DaniWeb C# Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Another Trojan.Bookmarker.Gen (Viruses, Spyware and other Nasties)
- Internet running very slowly HELP! (Viruses, Spyware and other Nasties)
- pop3 server component (C++)
- Security(sharing) not working for domain users, names are not resolving..... (Windows NT / 2000 / XP / 2003)
- Prompt kept taking me to download PurityScan (Viruses, Spyware and other Nasties)
- Turn Off File Names in Thumbnail View (Windows tips 'n' tweaks)
- Some resolutions to locking up, or 'freezing' (Troubleshooting Dead Machines)
Other Threads in the C# Forum
- Previous Thread: Request information from the WINS server
- Next Thread: Trouble with StreamWriter


Linear Mode