How do i add a radio button list to my VB.NET form and bind it?

Posted on 2007-08-05
Last Modified: 2012-05-05

I've just started creating a application.
In my form, i've got are area where the user has to enter whether the payment will be made in cash or check. I'll need to provide grouped option buttons for this.

I'd like to know how i can bind this to my database. Ideally, i'd have one field in my database called PaymentMethod, for eg. how do i go about binding this on my form? I've read that radiobuttonlist is probably the best method for doing this. However, the radiobuttonlist control is only available in the "Web Forms" tab, and the control is disabled, not allowing me to add it to my Windows form.

Any thoughts?
Question by:connelvalentine
    LVL 96

    Expert Comment

    by:Bob Learned
    There isn't a RadioButtonList control for WinForms applications.  You would have to roll your own.  You could just use single RadioButton controls in a GroupBox to get the same effect.

    LVL 34

    Accepted Solution

    Not exactly what you want, but this might give you some pointers


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    It’s quite interesting for me as I worked with Excel using for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
    Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now