<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Setup SAS EG Custom Task Forms in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Setup-SAS-EG-Custom-Task-Forms/m-p/334383#M22232</link>
    <description>&lt;P&gt;I am attempting to learn how to write a custom task in Visual Studio 2013 for SAS EG 6.1. I am following along in "Custom Tasks for SAS Enterprise Guide Using Microsoft .Net".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where I'm stuck is getting the form to show, I've used the Template to create the application and it has created a defaut Overrides Function Show method. In the book, when it comes to "Adding a User Interface" I copied what was there (changed for my form)&lt;/P&gt;&lt;PRE&gt;' This function is called when it's time to show the task window
    Public Overrides Function Show(ByVal Owner As IWin32Window) As SAS.Shared.AddIns.ShowResult
        Dim dlg As Form1 = New Form1()
        dlg.Text = String.Format("Test my form.")

        If (DialogResult.OK = dlg.ShowDialog(Owner)) Then
            Return ShowResult.RunNow
        End If
        Return ShowResult.RunNow
    End Function&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I run the debugger and click on my task in SAS EG, it just opens a file dialog, not the Windows From I created.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BIll&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Feb 2017 16:58:34 GMT</pubDate>
    <dc:creator>Bill_Guinan</dc:creator>
    <dc:date>2017-02-20T16:58:34Z</dc:date>
    <item>
      <title>Setup SAS EG Custom Task Forms</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Setup-SAS-EG-Custom-Task-Forms/m-p/334383#M22232</link>
      <description>&lt;P&gt;I am attempting to learn how to write a custom task in Visual Studio 2013 for SAS EG 6.1. I am following along in "Custom Tasks for SAS Enterprise Guide Using Microsoft .Net".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where I'm stuck is getting the form to show, I've used the Template to create the application and it has created a defaut Overrides Function Show method. In the book, when it comes to "Adding a User Interface" I copied what was there (changed for my form)&lt;/P&gt;&lt;PRE&gt;' This function is called when it's time to show the task window
    Public Overrides Function Show(ByVal Owner As IWin32Window) As SAS.Shared.AddIns.ShowResult
        Dim dlg As Form1 = New Form1()
        dlg.Text = String.Format("Test my form.")

        If (DialogResult.OK = dlg.ShowDialog(Owner)) Then
            Return ShowResult.RunNow
        End If
        Return ShowResult.RunNow
    End Function&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I run the debugger and click on my task in SAS EG, it just opens a file dialog, not the Windows From I created.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BIll&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 16:58:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Setup-SAS-EG-Custom-Task-Forms/m-p/334383#M22232</guid>
      <dc:creator>Bill_Guinan</dc:creator>
      <dc:date>2017-02-20T16:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Setup SAS EG Custom Task Forms</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Setup-SAS-EG-Custom-Task-Forms/m-p/334636#M22257</link>
      <description>&lt;P&gt;I think the initial file dialog you see comes from EG wanting you to add/select a data set for your task. &amp;nbsp;After selecting the data set, your task form would show.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your task does not require input data, then change the properties of your task by specifying this class attribute on your task class:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[InputRequired(InputResourceType.None)]&lt;/PRE&gt;
&lt;P&gt;(Instead of "[InputRequired(InputResourceType.Data)]")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 13:04:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Setup-SAS-EG-Custom-Task-Forms/m-p/334636#M22257</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-02-21T13:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Setup SAS EG Custom Task Forms</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Setup-SAS-EG-Custom-Task-Forms/m-p/334641#M22258</link>
      <description>Thanks, I knew I was missing something relatively simple.</description>
      <pubDate>Tue, 21 Feb 2017 13:16:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Setup-SAS-EG-Custom-Task-Forms/m-p/334641#M22258</guid>
      <dc:creator>Bill_Guinan</dc:creator>
      <dc:date>2017-02-21T13:16:40Z</dc:date>
    </item>
  </channel>
</rss>

