Only Use Load Event on the first load - InfoPath Dev Sign in | Join | Help in Code InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Code » Only Use Load Event on the first load Only Use Load Event on the first load Last post 02-27-2018 07:58 AM by eddie223. 3 replies. Page 1 of 1 (4 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 02-08-2018 08:01 AM eddie223 Joined on 02-08-2018 Posts 2 Only Use Load Event on the first load Reply Contact Hello, I have a form that uses a c# script to pull data from a database when it loads. It takes a couple of seconds and it only really needs to happen the first time the form is opened. How is best to say only perform the form load even on the first load? 02-09-2018 07:48 AM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 13,297 Re: Only Use Load Event on the first load Mark as Not AnswerMark as Answer... Reply Contact I'd probably add a field in the main data source to track this - like a status field that defaults to blank, and your C# code can set it to "Not New" or something, then can check for that value prior to running. Hilary Stoupa 02-09-2018 07:50 AM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 13,297 Re: Only Use Load Event on the first load Mark as Not AnswerMark as Answer... Reply Contact Well - I replied THEN thought of this: https://msdn.microsoft.com/en-us/library/office/ee527346.aspx - try checking the IsNew property. :) Hilary Stoupa 02-27-2018 07:58 AM In reply to eddie223 Joined on 02-08-2018 Posts 2 Re: Only Use Load Event on the first load Mark as Not AnswerMark as Answer... Reply Contact Thanks, that worked a treat! :) Page 1 of 1 (4 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.