• Advertisement
Sign in to follow this  

C# VS 2005

This topic is 4352 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi. ok im making a windows app. what I got is a text bar and this textbar will get in put in this form (q1,q2,q3, .....,qn) then i got this struct state, what i need to do is create n instance of this struct and each ones name has to correspont to the value in the testbar. for example i need to do state q1; so my questions is how can I take text from a textbar and use that text as a name for a struct instance.

Share this post


Link to post
Share on other sites
Advertisement
What are you trying to achieve ? I'm not sure I understand. You can't "name" instances at runtime in any way that makes sense.

Perhaps what you would want is a Dictionary<string, MyStruct> where the key is the content of the 'textbar'.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement