<?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: C# Set button to open Hyperlink</title><link>https://www.infopathdev.com:443/forums/thread/87779.aspx</link><pubDate>Thu, 07 Mar 2013 23:04:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87779</guid><dc:creator>zero6972102</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87779.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=87779</wfw:commentRss><description>That is what I missed.
Always the simple things. :P

Thanks for your help!</description></item><item><title>Re: C# Set button to open Hyperlink</title><link>https://www.infopathdev.com:443/forums/thread/87776.aspx</link><pubDate>Thu, 07 Mar 2013 22:51:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87776</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87776.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=87776</wfw:commentRss><description>&lt;p&gt;Did you just&amp;nbsp;sign it? Or did you also set the trust level to full trust?&amp;nbsp;Yes, it is System.Diagnostics.Process.Start. &lt;/p&gt;</description></item><item><title>Re: C# Set button to open Hyperlink</title><link>https://www.infopathdev.com:443/forums/thread/87775.aspx</link><pubDate>Thu, 07 Mar 2013 22:35:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87775</guid><dc:creator>zero6972102</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87775.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=87775</wfw:commentRss><description>I went into the advanced form options and added my certificate that is signed with a pin, but I&amp;#39;m still getting the same error.

Should I be using System.Diagnostics.Process.Start?
This is what Visual Studio changed it to automatically when I entered Process.Start</description></item><item><title>Re: C# Set button to open Hyperlink</title><link>https://www.infopathdev.com:443/forums/thread/87774.aspx</link><pubDate>Thu, 07 Mar 2013 22:17:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87774</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87774.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=87774</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Well- if it is full trust, you either have to sign with a code signing certificate (that your users have to accept) or create an .msi or use a script to install the form on each user&amp;#39;s machine. If you don&amp;#39;t sign with a code cert and are counting on your users to update their locally installed form any time you make a change.... Well. We know how that will work out. :)&lt;/p&gt;</description></item><item><title>Re: C# Set button to open Hyperlink</title><link>https://www.infopathdev.com:443/forums/thread/87772.aspx</link><pubDate>Thu, 07 Mar 2013 21:02:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87772</guid><dc:creator>zero6972102</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87772.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=87772</wfw:commentRss><description>Is there a down side to making it full trust?</description></item><item><title>Re: C# Set button to open Hyperlink</title><link>https://www.infopathdev.com:443/forums/thread/87770.aspx</link><pubDate>Thu, 07 Mar 2013 20:59:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87770</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87770.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=87770</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Whoops - sorry - that code will require you set your form to full trust. You can do that under form options but it means you&amp;#39;ll have to sign it or have users install it....&lt;/p&gt;</description></item><item><title>Re: C# Set button to open Hyperlink</title><link>https://www.infopathdev.com:443/forums/thread/87764.aspx</link><pubDate>Thu, 07 Mar 2013 18:14:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87764</guid><dc:creator>zero6972102</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87764.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=87764</wfw:commentRss><description>It is an Infopath Filler Form, not the browser form.

I clicked the button and selected Custom Code from the top bar.
Where it said &amp;quot;Write your code here&amp;quot;, I deleted that sentence and typed what you stated.
I then got an error when I tried to click the button:

System.Security.SecurityException
Request failed.
   at (Name of my form).FormCode.CTRL55_7_Clicked(Object sender, ClickedEventArgs e)
   at Microsoft.Office.InfoPath.Internal.ButtonEventHost.OnButtonClick(DocActionEvent pEvent)
   at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)

any ideas?</description></item><item><title>Re: C# Set button to open Hyperlink</title><link>https://www.infopathdev.com:443/forums/thread/87758.aspx</link><pubDate>Thu, 07 Mar 2013 17:52:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87758</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87758.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=87758</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Is this in a browser form? Or in InfoPath Filler? For Filler - Process.Start(&amp;quot;http://myurlhere&amp;quot;); should do what you need. &lt;/p&gt;</description></item><item><title>C# Set button to open Hyperlink</title><link>https://www.infopathdev.com:443/forums/thread/87628.aspx</link><pubDate>Mon, 04 Mar 2013 15:09:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87628</guid><dc:creator>zero6972102</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87628.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=87628</wfw:commentRss><description>I am wondering if there is some C# code that will allow a button control to open a hyperlink.

Currently, I am working around this by making the button, taking a snip of it, pasting the image, and adding a hyperlink to the image of the button.

Is there a piece of code where I could open hyperlinks such as:
ex. &amp;quot;http://(SharePoint Server address)/Shared Documents/Document.docx&amp;quot;</description></item></channel></rss>