Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Question about radiobuttons

Posted on 2012-03-20
2
Medium Priority
?
191 Views
Last Modified: 2012-06-21
Hi,

I use VS2010 and I programm in c#.

On my form I have 2 radiobuttons called "Ascending" and "Descending".
The radiobutton Descending is checked so its default. What I would like
is when the user presses the radiobutton Ascending the boolean named
grdSort is set to false in the Settings.Settings. And offcaurse if the user
presses the radiobutton Descending the boolean must set to True.

How can I do that?

Who knows the answer and is willing to help me?

Peter Kiers
0
Comment
Question by:peterkiers
[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 Comments
 
LVL 42

Accepted Solution

by:
sedgwick earned 2000 total points
ID: 37741164
add event handlers for both radio buttons:

this.Ascending.CheckedChanged += new System.EventHandler(this.Ascending_CheckedChanged);

this.Descending.CheckedChanged += new System.EventHandler(this.Descending_CheckedChanged);

private void Ascending_CheckedChanged(object sender, EventArgs e)
        {
            grdSort = Ascending.Checked;
        }

        private void Descending_CheckedChanged(object sender, EventArgs e)
        {
            grdSort = Descending.Checked;
        }

Open in new window

0
 
LVL 1

Author Comment

by:peterkiers
ID: 37741180
Thanks.

Peter
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

660 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