473,378 Members | 1,314 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.

Strange RadioButton Behavior . . . known bug?

Does this happen to anyone else?

Put a radio button on a form. Set its FlatStyle to "System" and its
AutoCheck to "False". In the Click event for the radiobutton, enter:
Msgbox("")

When I do this and run the project, clicking the radio button brings up 19
consecutive messageboxes. I thought there might be an error in my code
which causes this, but it worked on two separate forms. It also happens
when I start a blank project. Is there a way to fix this, aside from
setting the FlatStyle to "Standard"?

Thanks,
Nathan
Nov 21 '05 #1
3 990
"Nathan" <nk*********************@softhome.net> schrieb:
Put a radio button on a form. Set its FlatStyle to "System" and its
AutoCheck to "False". In the Click event for the radiobutton, enter:
Msgbox("")

When I do this and run the project, clicking the radio button brings up 19
consecutive messageboxes.


I am able to repro this bug in .NET 1.1 SP1 on Windows XP Professional SP2.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2

Herfried K. Wagner [MVP] wrote:
"Nathan" <nk*********************@softhome.net> schrieb:
Put a radio button on a form. Set its FlatStyle to "System" and its AutoCheck to "False". In the Click event for the radiobutton, enter: Msgbox("")

When I do this and run the project, clicking the radio button brings up 19 consecutive messageboxes.


I am able to repro this bug in .NET 1.1 SP1 on Windows XP

Professional SP2.

Win2k SP4 / VS 2002 / Framework 1.0.3705: I only get 14 <sniff>.
Interestingly all but the last have the app name as the window title,
but the last has a blank window title.

Cool bug!

--
Larry Lard
Replies to group please

Nov 21 '05 #3
I'm using .NET 1.0, WinXP SP1
Wow . . . since not even the great Herfried knew about this bug, I guess
there is no workaround except to change the Flatstyle? I even tried putting
the Msgbox in a separate subroutine and calling the subroutine in the Click
event . . . same result.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ut**************@TK2MSFTNGP09.phx.gbl...
"Nathan" <nk*********************@softhome.net> schrieb:
Put a radio button on a form. Set its FlatStyle to "System" and its
AutoCheck to "False". In the Click event for the radiobutton, enter:
Msgbox("")

When I do this and run the project, clicking the radio button brings up
19 consecutive messageboxes.


I am able to repro this bug in .NET 1.1 SP1 on Windows XP Professional
SP2.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #4

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

Similar topics

8
by: VK | last post by:
Hi! What I'm missing in following code? Cannot get the values of radiobuttons. Starting only one class (GetVariant), it works. When I put two classes together, it doesn't. Regards, VK from...
36
by: Dmitriy Iassenev | last post by:
hi, I found an interesting thing in operator behaviour in C++ : int i=1; printf("%d",i++ + i++); I think the value of the expression "i++ + i++" _must_ be 3, but all the compilers I tested...
31
by: Bjørn Augestad | last post by:
Below is a program which converts a double to an integer in two different ways, giving me two different values for the int. The basic expression is 1.0 / (1.0 * 365.0) which should be 365, but one...
2
by: RSB | last post by:
Hi Every one, I am using a data grid and one of the TemplateColumn is a asp:RadioBUtton. Every thing works ok . once i access the page it draws the Grid fine but now instead of picking one Radio...
2
by: Mick | last post by:
Hi, Got a repeater which display question answers and which contains a placeholder. In the ItemDataBound Event, I insert a Radio Button for each answer and set their GroupName with the Question...
2
by: Hans Kesting | last post by:
Hi, Navigating with "tab" and "shift-tab" between textbox and radiobutton has sometimes some strange results. Some example fields: - several textboxes (say: tb1, tb2) - some radiobuttons...
5
by: Matt B | last post by:
I know this is a bit of nonstandard behavior, but I would like the Enter key to move focus through a group of radiobuttons without selecting them. The user would then have to use Space or actually...
8
by: =?Utf-8?B?UmljaA==?= | last post by:
If you enclose a group of radiobuttons (option buttons in MS Access) in an option group control (a frame control) in Access -- the frame control will return the index of the option button that is...
160
by: DiAvOl | last post by:
Hello everyone, Please take a look at the following code: #include <stdio.h> typedef struct person { char name; int age; } Person;
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: 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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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.