cancel
Showing results for 
Search instead for 
Did you mean: 

Add-on with no "satellite" window

Former Member
0 Kudos

What is the recommended technique for developing an add-on, which does not open any additional window when it is started from the add-on manager? I use C# with Visual Studio.NET where I created a dotnet form to keep the add-on live. I tried to make this dotnet form invisible (hidden) but it did not work.

Any hints would be highly appreciated.

Thanks,

Miki

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Miklos,

I have use this technique for starting my add-ons, no windows form is used:

public class RunClass

{

public RunClass()

{

}

public static void Main(string[] args)

{

MyNewAddOn Addon = new MyNewAddOn();

Application.Run();

}

}

On the properties page of your project you need to change the startup object to the RunClass.

Regards, Lita

Former Member
0 Kudos

Hi Miklos,

I have made several addons hidding the main form, and allways worked for me (VB.Net). Could you post the code you are using?

Regards,

Ibai Peñ

Former Member
0 Kudos

public class BxUIHelloAddOnForm :

..System.Windows.Forms.Form {

.....

..private void OnLoad(object sender,System.EventArgs e) {

....try {

......new BxUIHelloAddOn();

......this.Hide();

......this.SetVisibleCore(false);

....} catch(Exception ex) {

......Debug.WriteLine(ex);

..}

..static void Main(string[] args) {

....Application.Run(new BxUIHelloAddOnForm());

..}

}

Why do you think the form is not hidden?

Mybe application main forms cannot be made hidden in C#?

Thank you,

Miki

Former Member
0 Kudos

Well, I don´t see any problem...

Have you got any Show in the this.SetVisibleCore(false);

method?

Another option I have used is to set the WindowState to Minimized and the ShowInTaskbar to false (And enabled to false too). Then no window is visible.

Try it if fits your needs,

Regards,

Ibai Peñ