<?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: Button properties</title><link>https://www.infopathdev.com:443/forums/thread/13732.aspx</link><pubDate>Thu, 06 Oct 2005 21:30:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13732</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13732.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13732</wfw:commentRss><description>Great.  Indeed, conditional formatting seems to be the way to go in your case.  From there, you can get creative and considering that you are already throwing secondary data sources and Web Services, you are way up there already!&lt;br /&gt;&lt;br /&gt;Good luck wit your developments.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché</description></item><item><title>Re: Button properties</title><link>https://www.infopathdev.com:443/forums/thread/13731.aspx</link><pubDate>Thu, 06 Oct 2005 19:10:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13731</guid><dc:creator>puziuss</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13731.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13731</wfw:commentRss><description>In my situation the same user may have different roles. What is most important to me to know is who is opening the form: same person who created it, who approved it or someone else. But I found conditional formatting usefull in my situation too. I set button to "hide" comparing form's field values to secondary source values (user ID returned by web service).&lt;br /&gt;&lt;br /&gt;&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by franck&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Hi,&lt;br /&gt;&lt;br /&gt;No there is no access to button show/hide property by code.  In your case, why don't you use conditional formatting with user role instead?  &lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;</description></item><item><title>Re: Button properties</title><link>https://www.infopathdev.com:443/forums/thread/13730.aspx</link><pubDate>Thu, 06 Oct 2005 17:48:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13730</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13730.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13730</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;No there is no access to button show/hide property by code.  In your case, why don't you use conditional formatting with user role instead?  &lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Button properties</title><link>https://www.infopathdev.com:443/forums/thread/12605.aspx</link><pubDate>Thu, 06 Oct 2005 17:19:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12605</guid><dc:creator>puziuss</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12605.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12605</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I was wondering if I can hide a button through the managed code (VB)? I know I can do it in InfoPath but I would like to display my button for only specific users which I would check during OnLoad event. &lt;br /&gt;&lt;br /&gt;If there is no access to button properties using code I can always create an additional view without a button and swich to that view depending on user credentials. I was just curious if I can control button in the code.&lt;br /&gt;&lt;br /&gt;Thanks!&lt;br /&gt;</description></item></channel></rss>