How to implement Invoke(new IsActivatedDelegate(CheckIfActivated)) method in Microsoft Office VSTO add-in

Question on method "p_Exited(object sender, EventArgs e)" of the "Step 8. Prompting for the user's product key" of your tutorial "Using TurboActivate with C#" [ref: https://wyday.com/limelm/help/using-turboactivate-with-csharp/]:

I'm in the process of try-before-you-buy for your LimeLM product for my Microsoft VSTO add-in application. All the code from your above tutorial is working in my VSTO app except the following line of code from p_Exited(object sender, EventArgs e) method in your sample

Invoke(new IsActivatedDelegate(CheckIfActivated));

This is happening because Invoke method is from the Control class of Windows Forms. But since it's a MS Office VSTO project and hence not using Windows Forms, what alternative I should have here for that above line of code. Maybe, someone who is using LimeLM for his/her VSTO project may also help here. I have noticed on your forum that there are people who are using LimeLM for their VSTO app - and that's why I've not given up LimeLM yet.

Well, Id say either try the WPF C# app example. Or just create your own dialog to prompt for the customers product key.

Just a simple dialog with a text box and a button. Use ta.CheckAndSavePKey() and ta.Activate.

I use:

Invoke(new IsActivatedDelegate(Globals.ThisAddIn.CheckIsActivated));

Dave,Thank you for sharing your suggestion. Would you care to share your thoughts on my following post, as well: https://wyday.com/forum/t/4743/where-do-we-create-turboactivate-instance-in-a-microsoft-office-vsto-project/