Its not much but go to about line 28, the part that reads:
- Code: Select all
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.TextBox URL;
And change it so it reads
- Code: Select all
public class Form1 : System.Windows.Forms.Form
{
private const int CP_NOCLOSE_BUTTON = 0x200;
protected override CreateParams CreateParams
{
get
{
CreateParams myCp = base.CreateParams;
myCp.ClassStyle = myCp.ClassStyle | CP_NOCLOSE_BUTTON ;
return myCp;
}
}
private System.Windows.Forms.TextBox URL;
This totally disables the X close button. Not quite a minimize to tray option but the minimize button still works next to it. But at least this means the only way to close it is to right-click on the systray icon and select the Exit option.
Quick an dirty hack, but least its a start, :-)
Will look into this further and more properly when I get more time.