Solved

How can i get one event for several radio buttons?

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access Web appliction 7 46
Problems running a .Net executable from Task Scheduler, program uses Process.Start 7 26
Authentication of Web Services 3 46
Syntax Error 2 42
If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
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.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

930 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

10 Experts available now in Live!

Get 1:1 Help Now