[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 209
  • Last Modified:

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

Hi,

I've just started creating a vb.net 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?
0
connelvalentine
Asked:
connelvalentine
1 Solution
 
Bob LearnedCommented:
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.

Bob
0
 
SanclerCommented:
Not exactly what you want, but this might give you some pointers

http://www.experts-exchange.com/Programming/Languages/.NET/Visual_Basic.NET/Q_22119150.html

Roger
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now