Jump to content

please help..?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Patrick

Patrick

    Programmer

  • Members
  • PipPipPipPip
  • 101 posts
Hi. So I've created an array list and dynamically created and added buttons to it. I want to check if any of those buttons are checked but I'm not sure how I would go about doing that. Is there a boolean member in the button Class that I can check to see if it's clicked? I've tried looking for it but I couldn't find it. All I found was an click event member.
Please help me guys..what i have to do?
Thanks a lot

#2
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
When you say "checked", it's quite confusing. Do you mean checked as in a check box or a radio button, or a click event? If it's the latter, you can simply assign a method to the buttom's click event, and when it's called, you can write some code to actually store the value in another array. This way, you get a build-up of information that's globally accessible. If you're using a check box or radio button, you can use the Checked property or the CheckState property.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums