Solved

How can i get one event for several radio buttons?

Posted on 2014-02-20
2
362 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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
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.

729 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