Click here to Skip to main content
15,902,112 members
Home / Discussions / C#
   

C#

 
GeneralRe: Generate Not Repeated Random Integer Values Pin
Vikram A Punathambekar25-Mar-08 2:31
Vikram A Punathambekar25-Mar-08 2:31 
GeneralRe: Generate Not Repeated Random Integer Values Pin
Russell Jones25-Mar-08 3:51
Russell Jones25-Mar-08 3:51 
GeneralRe: Generate Not Repeated Random Integer Values Pin
Christian Graus25-Mar-08 10:03
protectorChristian Graus25-Mar-08 10:03 
QuestionCreate a grid of radiobutton on the fly Pin
Desmond Lim24-Mar-08 23:59
Desmond Lim24-Mar-08 23:59 
GeneralRe: Create a grid of radiobutton on the fly Pin
Gareth H25-Mar-08 0:07
Gareth H25-Mar-08 0:07 
QuestionRe: Create a grid of radiobutton on the fly Pin
Desmond Lim26-Mar-08 16:46
Desmond Lim26-Mar-08 16:46 
GeneralRe: Create a grid of radiobutton on the fly Pin
Gareth H27-Mar-08 0:06
Gareth H27-Mar-08 0:06 
QuestionRe: Create a grid of radiobutton on the fly Pin
Desmond Lim27-Mar-08 15:54
Desmond Lim27-Mar-08 15:54 
I'm creating a software that allows the user to enter data for research purposes.

The slide/grid they use comes in different sizes, 20x30, 40x40, 100x30, etc. They want to be able to choose the size (by list box) and when a particular size is chosen, the grid of radio buttons corresponding to the size that they want will be created i.e. if they choose 20x30, 20 columns by 30 rows of radio buttons will be created.

The radio buttons will then be use to enter the data that corresponds to that part of the grid, that is to say, when the user clicks the Col 2 and Row 3 radio button, a window might pop up with the information needed for that part. Which means that each individual radio button has to be identifiable.

So back to my question how do you do a create radio button with different IDs because I know that when you do a
RadioButton rb01 = new RadioButton(); it creates the radio button object, I just don't know how to create radio buttons that have different IDs, i.e. rb01, rb02, rb03, etc. via using a loop. I know that if I do something like

for (int i = 0; i < 1000; i++)<br />
{<br />
    RadioButton rbNew = new RadioButton();<br />
    (move rbNew to a particular x y coordinate);<br />
    rbNew.name = "rb01";<br />
}


This doesn't seem to work for I only get 1 radio button.

If you can think another way to do this, I'll really appreciate it.

Thanks.

Desmond
GeneralRe: Create a grid of radiobutton on the fly Pin
Gareth H28-Mar-08 2:31
Gareth H28-Mar-08 2:31 
GeneralDownload Pin
ellllllllie24-Mar-08 23:48
ellllllllie24-Mar-08 23:48 
GeneralRe: Download Pin
Christian Graus25-Mar-08 0:08
protectorChristian Graus25-Mar-08 0:08 
GeneralRe: Download Pin
ellllllllie25-Mar-08 0:49
ellllllllie25-Mar-08 0:49 
GeneralRe: Download Pin
Christian Graus25-Mar-08 1:06
protectorChristian Graus25-Mar-08 1:06 
GeneralRe: Download Pin
ellllllllie25-Mar-08 2:06
ellllllllie25-Mar-08 2:06 
GeneralRe: Download Pin
Christian Graus25-Mar-08 10:09
protectorChristian Graus25-Mar-08 10:09 
GeneralRe: Download Pin
Pete O'Hanlon25-Mar-08 2:51
mvePete O'Hanlon25-Mar-08 2:51 
GeneralRe: Download Pin
Eduard Keilholz25-Mar-08 2:54
Eduard Keilholz25-Mar-08 2:54 
GeneralRe: Download Pin
Pete O'Hanlon25-Mar-08 3:09
mvePete O'Hanlon25-Mar-08 3:09 
GeneralRe: Download Pin
Eduard Keilholz25-Mar-08 3:20
Eduard Keilholz25-Mar-08 3:20 
GeneralRe: Download Pin
Pete O'Hanlon25-Mar-08 3:28
mvePete O'Hanlon25-Mar-08 3:28 
GeneralRe: Download Pin
ellllllllie25-Mar-08 5:08
ellllllllie25-Mar-08 5:08 
GeneralRe: Download Pin
Pete O'Hanlon25-Mar-08 5:17
mvePete O'Hanlon25-Mar-08 5:17 
GeneralRe: Download Pin
ellllllllie25-Mar-08 5:37
ellllllllie25-Mar-08 5:37 
QuestionWhat is this problem? Pin
wsamuel24-Mar-08 22:51
wsamuel24-Mar-08 22:51 
AnswerRe: What is this problem?Urgent!!Please Help!! Pin
Gareth H25-Mar-08 0:01
Gareth H25-Mar-08 0:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.