473,378 Members | 1,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

index of selected radiobutton?

Ole
I have a panel with some radiobuttons and during the form load I want a
specific control to be the selected one, which I obtain by this:
panel1.Controls[mySavedIndex].Select();

and when the form is closing i want to get the index of the selected
radiobutton but how should I do that?
mySavedIndex = ????;

Thanks
Ole
Dec 6 '07 #1
0 978

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: jez123456 | last post by:
Hi I have a Windows GroupBox (m_groupBox) on a form which acts as a filter and contains 26 filter radiobuttons (m_radioButtonA through m_radioButtonZ). How can I check in code which...
1
by: Empire City | last post by:
I have an ASP.NET form with a DataGrid and Button. I want to put a RadioButtonList in a DataGrid cell. I bind it to an ArrayList which has a ListItem in the cell. The display part works fine. I...
2
by: dwenwa | last post by:
Hi, I have a datagrid in my application that has a Template Column with a radiobutton. After selecting the item in the datagrid and the submit button, the program executes getSelectedItem(). ...
5
by: שמעון פ. | last post by:
Hi, I noticed that when mouse click is done on allready selected radiobutton - a postback is made ! 1. Why such thing happens ? 2. How can I catch this event on server side - it causes...
2
by: Alan Silver | last post by:
Hello, I have a pair of radiobuttons on a form, used to select the type of search someone is to do... <asp:RadioButton ID="rdbLastNDays" Text="Show tips for the last" GroupName="rbgSearch"...
0
by: Badis | last post by:
Hi Guys, I have a TemplateItem that has a RaioButton on it, and I want to get the index of the selected row once clicking the RadioButton (RadioButton_Click event) any Ideas. Thanks
2
by: lakepeir | last post by:
Hello, I have 4 radio buttons in a groupbox on a form. When I run the application, I would like to only select one radio button, but I can select one radio button from the first three radion...
1
by: Nathan Sokalski | last post by:
I have a RadioButtonList as one of the Controls in the ItemTemplate of my DataList. I am using a For Each loop to go through the Items property, but even if one of the RadioButtons has been...
1
by: Vinnie | last post by:
i have a radiobutton list, and one label with a textbox. Beside the Texbox i have inserted a fieldvalidator: now, i was wondering if the code that follows is correct, and if it does, where i should...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.