Got it to work. I did not need to set the Form to TopMost. What I did was set the visible = true in the pluginInit, AND added an event handler for the visibleChanged event:
Code:
//in CF_pluginInit()
this.Visible = true;
this.VisibleChanged+= new EventHandler(heading_VisibleChanged)
//add method
private void heading_VisibleChanged(object sender, EventArgs e)
{
this.Visible = true;
}
This makes sure the plugin is always visible, even when CF automatically hides it. Also, you do not need to create a button for when doing this. It will automatically start and show when CF starts. If you don't want it to start automatically, remove the
this.Visible = true; in the CF_pluginInit() and add a button. (haven't tried this, think it would work).
Ken