Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / December 2004

Tip: Looking for answers? Try searching our database.

grouped radio buttons

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MarkAurit - 08 Dec 2004 14:13 GMT
In vs.net I have a form with 2 seperate groupings, and several radio buttons
in each.  Ive created all in the IDE (1.1).  Both the groupings, and all the
radio buttons have different names.
However, when I run the form, all the buttons are mutually exclusive.  If I
click on a button in one group, and then a button in the other group, only 1
button is clicked.  I expect them to be exclusive to a grouping, but that
isnt happening.
?????
Thanks, Mark
Tim Wilson - 08 Dec 2004 15:06 GMT
Have you placed the groups of radiobuttons in separate containers such as
panels or groupboxes?

Signature

Tim Wilson
.Net Compact Framework MVP

> In vs.net I have a form with 2 seperate groupings, and several radio buttons
> in each.  Ive created all in the IDE (1.1).  Both the groupings, and all the
[quoted text clipped - 5 lines]
> ?????
> Thanks, Mark
MarkAurit - 08 Dec 2004 15:59 GMT
Yes - by "groupings" I should have said "groupboxes".  I almost expected each
groupbox to a have, in its property, a  collection of the radio buttons for
the groupbox, but it didnt have anything like that (at least, that I could
see).

> Have you placed the groups of radiobuttons in separate containers such as
> panels or groupboxes?
[quoted text clipped - 12 lines]
> > ?????
> > Thanks, Mark
Tim Wilson - 08 Dec 2004 16:19 GMT
That seems odd. I'm not seeing this behavior. I'm using VS.Net 2003, .Net Fx
1.1 w/ SP1. Are you sure that the radiobuttons have actually been added to
the Controls collection for the appropriate groupboxes?

Signature

Tim Wilson
.Net Compact Framework MVP

> Yes - by "groupings" I should have said "groupboxes".  I almost expected each
> groupbox to a have, in its property, a  collection of the radio buttons for
[quoted text clipped - 17 lines]
> > > ?????
> > > Thanks, Mark
MarkAurit - 08 Dec 2004 16:31 GMT
I take it I should look in the generated code?  Now that I look, they are
added to the tab, not the groupbox.  I think I first added the radio buttons
and then the groupbox - perhaps I should have done it the other way around?
Thx, Tim

> That seems odd. I'm not seeing this behavior. I'm using VS.Net 2003, .Net Fx
> 1.1 w/ SP1. Are you sure that the radiobuttons have actually been added to
[quoted text clipped - 28 lines]
> > > > ?????
> > > > Thanks, Mark
Tim Wilson - 08 Dec 2004 16:55 GMT
You could have either looked in the auto generated code or just moved the
radiobuttons around to see if they get clipped by the appropriate groupbox.
Yeah, if the groupbox is first selected in the designer, and you then start
double-clicking items in the toolbox, if possible they will added to the
selected control. So if you added the groupboxes first and then the
radiobuttons it should have done this correctly. However, you can always
drag the controls around on the form after the fact. So just dump the
correct radiobuttons into the correct groupboxes and that should fix the
problem.

Signature

Tim Wilson
.Net Compact Framework MVP

> I take it I should look in the generated code?  Now that I look, they are
> added to the tab, not the groupbox.  I think I first added the radio buttons
[quoted text clipped - 33 lines]
> > > > > ?????
> > > > > Thanks, Mark

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.