<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Accessing Radio Button in C#.NET</title><link>https://www.infopathdev.com:443/forums/thread/3955.aspx</link><pubDate>Wed, 07 Feb 2007 07:00:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3955</guid><dc:creator>Shilpa Pitta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3955.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3955</wfw:commentRss><description>Hi Nasir,&lt;br /&gt;Here is the block of the code that you need in C#&lt;br /&gt;public bool showText()&lt;br /&gt;	{			&lt;br /&gt;		int selected = Convert.ToInt16(thisXDocument.DOM.selectSingleNode("/my:myFields/my:Field1").text);&lt;br /&gt;		if(selected == 0)&lt;br /&gt;			{&lt;br /&gt;				return true;&lt;br /&gt;			}&lt;br /&gt;			return false;&lt;br /&gt;		}&lt;br /&gt;&lt;br /&gt;xdExtension:showText()&lt;br /&gt;&lt;br /&gt;Hope this helps you!</description></item><item><title>Re: Accessing Radio Button in C#.NET</title><link>https://www.infopathdev.com:443/forums/thread/3954.aspx</link><pubDate>Wed, 07 Feb 2007 04:39:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3954</guid><dc:creator>PakiDev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3954.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3954</wfw:commentRss><description>Is there any way to hide or show a control programmatically specially in C#.NET</description></item><item><title>Re: Accessing Radio Button in C#.NET</title><link>https://www.infopathdev.com:443/forums/thread/3953.aspx</link><pubDate>Wed, 07 Feb 2007 04:21:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3953</guid><dc:creator>PakiDev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3953.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3953</wfw:commentRss><description>Wow... it is pretty simple and really worked... I have no words to thanks both of you... you are life savers...!</description></item><item><title>Re: Accessing Radio Button in C#.NET</title><link>https://www.infopathdev.com:443/forums/thread/3952.aspx</link><pubDate>Tue, 06 Feb 2007 13:14:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3952</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3952.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3952</wfw:commentRss><description>Hi Paki,&lt;br /&gt;&lt;br /&gt;the easiest really is using conditional formatting. Double click the control you want to hide/show and select contditional formating.&lt;br /&gt;The select form the first dorpdownlist your radioButtonControl, in the second is not equal to and in the third "1" or "2" or Yes/No depending how you have set up your radion button.&lt;br /&gt; &lt;br /&gt;If you want to use code you can get a reference to your radion button control like this:&lt;br /&gt;IXMLDOMNode myRadioButton = thisXDocument.Dom.SelectSingleNode("my:myFields/my:RadioButtonControlName");&lt;br /&gt;&lt;br /&gt;and then use &lt;br /&gt;&lt;br /&gt;if(myRadioButton.text == "depending on how you have set the values to your radio button)</description></item><item><title>Re: Accessing Radio Button in C#.NET</title><link>https://www.infopathdev.com:443/forums/thread/3951.aspx</link><pubDate>Tue, 06 Feb 2007 10:59:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3951</guid><dc:creator>Shilpa Pitta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3951.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3951</wfw:commentRss><description>Hi Nasir,&lt;br /&gt;Without using code also we can do this by applying conditional formatting on the section keeping text box in the section.&lt;br /&gt;&lt;br /&gt;Hope this helps you!</description></item><item><title>Accessing Radio Button in C#.NET</title><link>https://www.infopathdev.com:443/forums/thread/1835.aspx</link><pubDate>Mon, 05 Feb 2007 05:51:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1835</guid><dc:creator>PakiDev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1835.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1835</wfw:commentRss><description>Dear Gurus&lt;br /&gt;I have a infopath 2003 form with managed code in C#.Net, VS 2003, in which I have included a group of radio button namely personel and offcial.I want to show a textbox when personal is selected and hide the textbox if the official radio button is selected. My problem is how can I access these radio button programmetically in my C#.NET code, to make changes upon their selection mode. &lt;br /&gt;I am extremely helpless. &lt;br /&gt;&lt;br /&gt;Any help is welcome&lt;br /&gt;Regards&lt;br /&gt;Nasir &lt;br /&gt;Pakistan</description></item></channel></rss>