Results 1 to 7 of 7

Thread: [RESOLVED] Access user control attributes from a user control

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2009
    Posts
    4

    Resolved [RESOLVED] Access user control attributes from a user control

    I am trying to build a tournament bracket application. In order to build the application efficiently I would like to make a user control "GameControl" that represents a game and give it attributes that represent the names of the competitors "TeamNameA" and "TeamNameB" ,an attribute "Winner" to represent which team should move on, and an attribute "NextRoundGame" that assigns another instance of the user control so that it can assign the "winner" to one of the "TeamName" attributes of the next round in the competition. If the controls were native to VB I feel like I could do it easily (I have only spent about 30 hours self teaching/tutorial following) but I can't seem to find out how to pass values to custom attributes of custom user controls through code.

    A visual reference of my project is attached. The idea is that no matter how large the tournament is I could add all the "GameControl" boxes and assign them to each other as necessary at design time and then as the tournament progressed clicking on the radio button of the winner would pass that teams name down to the next level.

    Thanks in advance for any help. I think this is the easiest way to make the program flexible provided it would work, but I fear from my searches that it's not a supported technique.
    Attached Images Attached Images  

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