How to connect the option/radio button to listview control using ADODB connection?
That is,right after when you click a radio button as the letter of your choice..then it will automatically shown to the the listview control as the answer sheet..for the respective question..and numbering..? Using the VB 6.0..

Example:
1. What is the color of Ramon's red coat? <Answer Sheet>---- Listview1
a)blue b)red c)yellow d)rainbow -------> 1. a)blue
.
.
option button


I really don't have an idea how am i gonna do it! ..I don't know how to construct the code..

I don't think a listview control is what you want. I think it would look more like a normal question screen if you had an array of radio buttons. On your form, place one radio button, then copy and paste it, VB will ask if you want to create a control array, answer yes. then keep pasting until you have the desired number of radio buttons.

When you retrieve a record from the database populate the captions of the radio buttons.

Place some code under the click event of the control array to check if the user has selected the correct answer

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.