Solved

How can i get one event for several radio buttons?

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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
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 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.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

808 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