User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Aug 2007
Location: Gunnison, Colorado
Posts: 57
Reputation: fishsqzr is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
fishsqzr fishsqzr is offline Offline
Junior Poster in Training

Question component names

  #1  
Sep 30th, 2007
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.
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C# Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C# Forum

All times are GMT -4. The time now is 3:58 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC