<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: VB code to modify checkbox control</title><link>https://www.infopathdev.com:443/forums/thread/40572.aspx</link><pubDate>Tue, 14 Apr 2009 02:04:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40572</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40572.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40572</wfw:commentRss><description>&lt;p&gt;To uncheck a checkbox, you need to set the value of the field bound to the checkbox to the checkbox&amp;#39;s &lt;em&gt;off&lt;/em&gt; value.&amp;nbsp; If it&amp;#39;s a boolean field, the off value would be &lt;em&gt;false&lt;/em&gt; and otherwise it would be &lt;em&gt;no&lt;/em&gt; by default unless you changed the settings.&lt;/p&gt;</description></item><item><title>VB code to modify checkbox control</title><link>https://www.infopathdev.com:443/forums/thread/40542.aspx</link><pubDate>Mon, 13 Apr 2009 15:47:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40542</guid><dc:creator>ocampod84</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40542.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40542</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sort of an InfoPath noob and I get the basic idea behind programming InfoPath with VB, however I am having issues setting the value for a checkbox. I am using VB.NET 2005 to validate several controls once the checkbox is enabled. I know I could use rules and whatnot, but validating all it through rules can be cumbersome and I&amp;#39;ve had issues in the past with it. I tried using the SetValue method to reset the value of a checkbox if the user enters the wrong data, but I get runtime errors.&lt;/p&gt;
&lt;p&gt;Would anyone know how to uncheck the control. I just wish there was an &amp;quot;unchecked&amp;quot; property like in a Windows form.&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;</description></item></channel></rss>