Sunday, August 2, 2009

How do I use CheckBoxes and RadioButtons in visual basic?

Im working on my review for my final, and I have 2 textbooks. Neither include anything about these two.

How do I use CheckBoxes and RadioButtons in visual basic?
lol exactly what do you want to use them for?


be more specific, VB6.0 or VB.net?


in which way do you want to use them





then i can answer your question :)





yes it does help


you need to hook up their events like any other vb control


for checkboxs, you want to hook the CheckChanged event into a function (which you can get the state the checkbox was changed to by checkBoxName.Checked )





for a RadioButton, only one in each 'group' can be selected, and you want to do the same as with a checkbox (hook the CheckChanged event into a function, with a radiobutton you can hook all into the same function, and use radioButtonName.Checked to check the state of each radiobutton to find which is checked)





i hope that helps?


if you need more help just send me a message
Reply:The best Way for you is the MSDN of Microsoft,in that sarvice you can find every thing From A to Z.


WWW.MSDN.Microsoft.com
Reply:Comboboxes allow you to provide a list of answers that a user can select from. You can also allow users to add to the list.





Example: State Selection - The users selects what state they live in from a list of available states. Prevents 30 different spellings for one correct answer.





Rabio Buttons are used to allow a user to slect one answer from a limites set of choices.





Example: Export format - The user wants to run a report, but you want to know what format they want the report ran in; Excel, PDF, text file, etc. You have limits to what export formats your program can support, so you limit the radio options to only those that are available, and that is normally a short unchangeing list.

playing cards

No comments:

Post a Comment