<?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: How to Get value from a control - SecurityException</title><link>https://www.infopathdev.com:443/forums/thread/33559.aspx</link><pubDate>Tue, 28 Oct 2008 04:18:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33559</guid><dc:creator>onefootswill</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33559.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33559</wfw:commentRss><description>&lt;p&gt;It&amp;#39;s OK. I figured it out. I had to make it fully trusted.&lt;/p&gt;&lt;p&gt;For other newbies with this problem, do this (when you are in design view of Infopath):&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Tools / Form Options&lt;/li&gt;&lt;li&gt;click the &amp;#39;Security and Trust&amp;#39; category&lt;/li&gt;&lt;li&gt;uncheck &amp;#39;Automatically determine security level&amp;#39;&lt;/li&gt;&lt;li&gt;check &amp;#39;Full Trust&amp;#39;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Then, you should no longer get that error. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>How to Get value from a control - SecurityException</title><link>https://www.infopathdev.com:443/forums/thread/33531.aspx</link><pubDate>Mon, 27 Oct 2008 07:05:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33531</guid><dc:creator>onefootswill</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33531.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33531</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi there.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am trying to learn how to access the controls on an infopath form using VB.NET (using VSTA). Using the following code:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub btnTest_Clicked(ByVal sender As Object, ByVal e As ClickedEventArgs)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39; Write your code here.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim chkBox As XPathNavigator = Me.MainDataSource.CreateNavigator().SelectSingleNode _&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&amp;quot;/my:myFields/my:chkCompleted&amp;quot;, NamespaceManager)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;I am getting the following exception: &amp;quot;System.Security.SecurityException was unhandled by user code&amp;quot;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If anyone can help, that would be ace! &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>