Hi, I've been absent from my computer for a couple of days, but I seem to have fixed the problem. I still have no idea why it was crashing, but I simply added this code:
this.ShowInTaskbar = false;
before I called up the minimise function and it seems to stop it from crashing. It's a fix, but I'd still like to know why it was crashing in the first place if anyone figures it out! Thanks