
Hello. I get the following result with these codes. When i click "write", it finds out which selected checkboxes have been checked and the result comes out in richtexbox

This is what i got with the code i entered

But what i want to do is not only get the checked checkboxes but also write the text in front of them
It is possible to do with "if else", but this route is not only time-consuming but also impractical.
How can i get it as shown in the picture? To get the selected checkboxes and the texts in front of them at the same time?
Naimish MakwanaPosted Mar 4, 2023, 11:25 AM
Hello Vusal,
One way to achive what you want is, You want to make checkbox and texbox name in similar pattern.
Exmple : If your checkbox name is checkBox1 then your textBox name must be textBox1
Ex: checkBox1 = textBox1, checkBox2 = textBox2, checkBox3 = textBox3....
after changing the naming of above use below code.Modify you code base on your need.
It will give you following output.
Thanks
Naimish Makwana