I'm creating a custom ArcToolbox tool in C# .NET in ArcGIS 10 SP2. Though I seem to be having two issues which maybe related:
Firstly, my tool is run as a background task i.e. the GP dialog does not show, instead the progress bar displays on ArcMap's status bar. Can I get the GP progress pop up dialog to display instead when my GP tool is executed?
Secondly, I want to use IGPUtilities3:AddToMap or IGPUtilities3:GetMap() in the execute method of the GPFunction class but neither work. Either my dataset doesn't get added or GetMap() return null. If I check the InApplication or CanAddToMap properties they return false. I'm just doing a IGPUtilities3 utils = new GPUtilitiesClass.
I guess it hasn't tied into the ArcMap application but how do I fix this in a GPFunction class?
Thanks