Click here to Skip to main content
15,887,854 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have 4 radio button which is being put on the design part . First when the form loads im able toclear the button being selected using tabstop. Once the button is clicked the im incrementing the question and performing actions to check the ans but after all the if condition using same button i want to clear the values for next questions ans coming forward using radio buttons. But the values which i have stored previously is getting deleted and also when i increment it needs to be pressed twice.

What I have tried:

i have tried to do the same by incrementing as soon as the first question is shown then by the time next button is hit ans gets incremented (values from table) hence the first question is never tabulated .
Posted
Comments
OriginalGriff 8-Jun-18 6:29am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with.
How about showing us the relevant code fragments so we can see what you are doing, and perhaps giving us an example of the flow through the app?
And don't forget to tell us what environment you are working in - a web-based solution will be different from WinForms, that won't be the same as WPF, and Xamarin Forms will be yet more different, and ...
Use the "Improve question" widget to edit your question and provide better information.
[no name] 8-Jun-18 14:06pm    
Your "model" is wrong.

A "radio button" shouldn't invoke an "action"; for that, you use a "command button".

But since you are so free with your "button" word, no one really knows what kind of "button" you are talking about at any given time.
Afzaal Ahmad Zeeshan 9-Jun-18 7:31am    
Can you share the code that you are using for this scenario?

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