Solved

How can i get one event for several radio buttons?

Posted on 2014-02-20
2
355 Views
Last Modified: 2014-02-20
I have about 10 radio buttons in three group boxes on a form. Based on the selection by the user i will build a SQL query and populate a ListView. I have a procedure called fillListView that handles all of the possible user selections and builds the query. I dont want to have to call my fillListView procedure from 10 different radio button events. Is there a way i can have a single event from any of the radio buttons?
0
Comment
Question by:Basicfarmer
  • 2
2 Comments
 

Accepted Solution

by:
Basicfarmer earned 0 total points
ID: 39875931
I figured it out with the event handler.

    Private Sub printer0_CheckedChanged(sender As System.Object, e As System.EventArgs) Handles printer0.CheckedChanged, _
                                                                                                printer1.CheckedChanged, _
                                                                                                printer2.CheckedChanged
        fillListView()

    End Sub

Open in new window

0
 

Author Closing Comment

by:Basicfarmer
ID: 39875932
I figured out how to use the event handlers.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

759 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

24 Experts available now in Live!

Get 1:1 Help Now