Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How can i get one event for several radio buttons?

Posted on 2014-02-20
2
Medium Priority
?
365 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

610 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