How to disable button when checkbox is checked. vbscript?

How do I make my program print checkbox information in VB?

  • I have to make a form where I set up a page printout that includes: Student: (plus name from a textbox) *DONE* Highschool: (plus name of highschool from combobox) *DONE* Major: (plus a major from a listbox) *DONE* Dean's list: (plus "yes" or "no", depending on if the checkbox is checked or not) *NEED HELP* Year in highschool: (plus an option from a selected radio button in a group box) *NEED HELP* So what I need to figure out is how to print information from a selected radio button, and how to print "yes" or "no" depending on whether a checkbox is checked or not. Thanks in advance for the help. I hope you can answer quickly, it's due in an hour.

  • Answer:

    Probably a bit late, hope you managed okay. If not, to check if the checkbox is checked or not, you just use CheckBox1.Checked. So to set a string value to be "yes" or "no", is simply Dim isCB1checked as String = "yes" If CheckBox1.Checked = false Then isCB1checked = "no" End If Best, - D.E.

Tony W at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.