Click here to Skip to main content
15,917,329 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello everyone,

I've got a big challenge here. I have created a voting system. At the voting form, I added 10 groupboxes there dedicated for the candidates.

Flow:
the user must choose a position in each box then as they choose a position,the candidates for that position will be populated in a listview..then a user selects a candidate in the list view then that candidates profile will be revealed on the labels and textboxes..the same with all other 9 groupboxes..then click VOTE to cast vote..

Problem:
the faculties and panel of the school do not want that style of voting..all they want is to automatically creates a RADIO button for each candidate....is there any way to create radio button at runtime and also create a code or event on each of the radio button?

please everyone? any reply,comments or suggestions are greatly appreciated..
by the way..i have tables for candidates,positions etc..so every data in the system are modifiable..i use visual studio 2008 with mysql and workbench as backend..

-reymelito
Posted
Updated 8-Feb-11 22:34pm
v2
Comments
[no name] 9-Feb-11 4:26am    
For voting system what code you have written and what error it shows. we are here to guide you not to do your homework.
Reymelito A. Lemo 9-Feb-11 4:39am    
theres no error sir..they just want me to dynamically create radio buttons at runtime and create codes or events for it..is it possible sir?..thanks so much for your reply sir..
Prerak Patel 9-Feb-11 4:39am    
AddHandler will help you.

1 solution

It is possible. You need to know how to create controls, position them, and handling events. AddHandler will help you bind events at runtime.

Google[^]
 
Share this answer
 
Comments
Reymelito A. Lemo 9-Feb-11 4:41am    
thanks sir..i gonna try this out :)ill back here if i solved the problem or having some troubles again..thanks...
Prerak Patel 9-Feb-11 4:47am    
welcome

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900