﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Issues  » RadioButtonGroup problem</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 03:11:26 GMT</lastBuildDate><ttl>20</ttl><item><title>RadioButtonGroup problem</title><link>http://forum.strataframe.net/FindPost29558.aspx</link><description>I have synthesized this problem to a very simple example, but I am seeing this same problem everywhere when using my base subclass of an SF Textbox and a standard SF RadioButtonGroup control on the same form.&amp;nbsp; Here is the complete C# class definition for MyBaseTextbox:&lt;br/&gt;&lt;br/&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#0000ff size=2&gt;using&lt;/font&gt;&lt;/font&gt;&lt;font size=2&gt;&lt;font color=#000000&gt; System;&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#0000ff size=2&gt;using&lt;/font&gt;&lt;/font&gt;&lt;font size=2&gt;&lt;font color=#000000&gt; System.Collections.Generic;&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#0000ff size=2&gt;using&lt;/font&gt;&lt;/font&gt;&lt;font size=2&gt;&lt;font color=#000000&gt; System.Text;&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#0000ff size=2&gt;namespace&lt;/font&gt;&lt;/font&gt;&lt;font size=2&gt;&lt;font color=#000000&gt; RadioButtonGroupProblem&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;{&lt;br/&gt;&lt;br/&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#0000ff size=2&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#0000ff size=2&gt;class&lt;/font&gt;&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#2b91af size=2&gt;&lt;font color=#2b91af size=2&gt;MyBaseTextbox&lt;/font&gt;&lt;/font&gt;&lt;font size=2&gt; : MicroFour.StrataFrame.UI.Windows.Forms.&lt;/font&gt;&lt;font color=#2b91af size=2&gt;&lt;font color=#2b91af size=2&gt;Textbox&lt;/font&gt;&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;&lt;font size=2&gt;&lt;font color=#2b91af&gt;{&lt;/font&gt;}&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;&lt;font size=2&gt;}&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;&lt;font size=2&gt;To duplicate the problem, just create an SF StandardForm and drop an instance of MyBaseTextbox on the form.&amp;nbsp; You don't even need to bind anything to the textbox or configure it any way.&amp;nbsp; Then drop an instance of a standard SF RadioButtonGroup control on the form.&amp;nbsp; Again no binding is necessary.&amp;nbsp; Notice the property named RadioButtonCount on the RadioButtonGroup control defaults to 2.&amp;nbsp; Now build the solution and notice that the RadioButtonCount has changed to 4.&amp;nbsp; And from then on, attempting to change the Text property of either of the 2 visible radio buttons gets all mixed up.&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;&lt;font size=2&gt;This problem seems to happen on various types of forms and with or without binding to data etc.&amp;nbsp; This sample is just to simplify testing.&amp;nbsp; My real application requires that I create my own base subclasses of most of the controls but this problem prohibits using them with a RadioButtonGroup control.&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;&lt;font size=2&gt;Sam Tenney&lt;/font&gt;</description><pubDate>Fri, 06 May 2011 13:13:03 GMT</pubDate><dc:creator>Sam Tenney</dc:creator></item><item><title>RE: RadioButtonGroup problem</title><link>http://forum.strataframe.net/FindPost29956.aspx</link><description>Nope Sam, I haven't either. </description><pubDate>Fri, 06 May 2011 13:13:03 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: RadioButtonGroup problem</title><link>http://forum.strataframe.net/FindPost29955.aspx</link><description>Hi Ivan,&lt;br/&gt;&lt;br/&gt;I have still not figured out how to bind a field to a radio button.&amp;nbsp; Have you?&lt;br/&gt;&lt;br/&gt;Trent's suggestion was to not use a radio button group, and I need more explanation of how to bind data using Trent's suggestion.&lt;br/&gt;&lt;br/&gt;Sam Tenney</description><pubDate>Fri, 06 May 2011 12:21:10 GMT</pubDate><dc:creator>Sam Tenney</dc:creator></item><item><title>RE: RadioButtonGroup problem</title><link>http://forum.strataframe.net/FindPost29575.aspx</link><description>Hi Sam.&lt;br/&gt;&lt;br/&gt;I guess I am one of those that still use the RadioButtonGroup. :Whistling:&lt;br/&gt;&lt;br/&gt;Also, I tried to find out how to bind the RadioButton individually, but without coding I just have no idea of how to do it. I will try and find out and then will come back here.</description><pubDate>Thu, 17 Feb 2011 09:11:42 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: RadioButtonGroup problem</title><link>http://forum.strataframe.net/FindPost29571.aspx</link><description>Hi Ivan,&lt;br/&gt;&lt;br/&gt;Thanks for the link to the old post.&amp;nbsp; I have decided to try Trent's suggestion and not use a RadioButtonGroup.&amp;nbsp; I do not know how to bind a field to radio buttons and I cannot find any samples or instructions.&amp;nbsp; I would appreciate any suggestions.&amp;nbsp; I have an SQL column called PayType which contains a single character as follows:&amp;nbsp; "H", "S", or "C" for Hourly, Salary, or Contract.&amp;nbsp; I dropped 3 radio buttons onto a ThemedGroupBox and changed the titles to Hourly, Salary, and Contract.&amp;nbsp; It looks great and the buttons seem to function correctly, but I have no idea how to bind the PayType field to the radio buttons.&lt;br/&gt;&lt;br/&gt;Sam Tenney</description><pubDate>Wed, 16 Feb 2011 10:48:20 GMT</pubDate><dc:creator>Sam Tenney</dc:creator></item><item><title>RE: RadioButtonGroup problem</title><link>http://forum.strataframe.net/FindPost29570.aspx</link><description>Thanks Trent, I will give that a try.&lt;br/&gt;&lt;br/&gt;Sam Tenney</description><pubDate>Wed, 16 Feb 2011 09:52:08 GMT</pubDate><dc:creator>Sam Tenney</dc:creator></item><item><title>RE: RadioButtonGroup problem</title><link>http://forum.strataframe.net/FindPost29563.aspx</link><description>Don't use the radio group.&amp;nbsp; This control will be deprecated in future releases as it isn't necessary.&amp;nbsp; Just use a radio button.&amp;nbsp; You can have as many "radio groups" as you like on a single form.&amp;nbsp; Just place each "group" of radio buttons in a container (i.e. panel, ThemedPanel, ThemedGroupBox, etc) and those radio buttons will act as unto themselves as a group or collection.&amp;nbsp; The RadioGroup that comes with SF has been left for those that have used it, but in the long-term, will be removed from the control collection as it is not necessary.</description><pubDate>Wed, 16 Feb 2011 08:14:39 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: RadioButtonGroup problem</title><link>http://forum.strataframe.net/FindPost29560.aspx</link><description>Glad it is not just me. I am glad this has resurfaced again.&amp;nbsp;&lt;div&gt;Thanks Sam.</description><pubDate>Tue, 15 Feb 2011 18:04:27 GMT</pubDate><dc:creator>Terry Bottorff</dc:creator></item><item><title>RE: RadioButtonGroup problem</title><link>http://forum.strataframe.net/FindPost29559.aspx</link><description>Hi Sam.&lt;br/&gt;&lt;br/&gt;Have a look at this post:&lt;br/&gt;&lt;br/&gt;&lt;a href="http://forum.strataframe.net/FindPost29048.aspx"&gt;&lt;a href="http://forum.strataframe.net/FindPost29048.aspx"&gt;http://forum.strataframe.net/FindPost29048.aspx&lt;/a&gt;&lt;/a&gt;</description><pubDate>Tue, 15 Feb 2011 17:47:53 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>