<?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: Hiding a button through code</title><link>https://www.infopathdev.com:443/forums/thread/13541.aspx</link><pubDate>Fri, 02 Sep 2005 21:56:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13541</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13541.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13541</wfw:commentRss><description>Sure, just call xdExpression from the condition. Check out the following:&lt;a target="_blank" href=http://www.infopathdev.com/howto/bugs/default.aspx?i=c5f158cb6d2d4b578290d1116db0ea29&gt;http://www.infopathdev.com/howto/bugs/default.aspx?i=c5f158cb6d2d4b578290d1116db0ea29&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Hiding a button through code</title><link>https://www.infopathdev.com:443/forums/thread/12554.aspx</link><pubDate>Fri, 02 Sep 2005 21:24:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12554</guid><dc:creator>Sumeet</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12554.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12554</wfw:commentRss><description>Hi Guys,&lt;br /&gt;&lt;br /&gt;I want to be able to hide a control through code. I know I can use conditional formatting to accomplish this but is there a way that I can Hide a button through managed code(C#). If yes then could somebody please give me some example.&lt;br /&gt;&lt;br /&gt;Thanks &lt;br /&gt;&lt;br /&gt;Sumeet</description></item></channel></rss>