You really ought to find another monitor and see if it works and also give JoDaMa's suggestion a try if your graphics card has more than one output.
If the problem persists despite checking both GPU outputs and trying a different monitor, then you may have a driver issue. Download the latest graphics drivers for your GPU and install them.
If that fails to fix the issue then try the following:
Run Malwarebytes Antimalware
Run any kind of Antivirus scanner [Avira and MSE are two good, free AVs if you do not already have one - AVG is crap and doesn't count

]
If running XP or Vista try Combofix
Many thanks for your reply
Your first reply to me about thinking my monitor may be knackered isn't true. It's been always working perfectly without any glitches. Everything has been working fine till today. Well not everything, I have had some computer problems for a while now, like my sound card audio doesn't work. I haven't had any sound for weeks. But let's not get into that.
I already tried what jodama's said about checking cable connections. Everything is tight in place. My graphics card only has 1 output. I don't have another monitor or PC to try the GPU in.
I downloaded combo fix, I remember using this once a few years back to fix a problem which I had and it worked. But now that I downloaded and clicked to run it, it started to do it's thing and then rebooted the computer. During the boot up I got none of this flickering which was fantastic but then when it got to the windows blue welcome screen the flickering started and I clicked on the administrator account and then came into windows where combo fix continued to do it's thing and the screen was flickering like crazy. Then I saved the log file, now the flickering has stopped as I am typing this message. But the pixels are all over the screen.
Anyway I think it's about time I just do a complete reinstall of windows. I currently have XP but I am thinking of getting window 7. I have never done a reinstall before.
I started by going about backing up my files, and then found something strange, when I deleted some files, programs, and big video files coming in at 2GB each. I then went into My Computer and clicked on my HD to see how much space I now have and the strange thing is that it doesn't update. I deleted some more files and came back to see it update and nothing, I right clicked and pressed refresh again nothing. It just sits on say that I have 93GB total space and 33.2GB available space. Which is impossible. I should have like 70GB left after deleting a ton load of files.
Then I went into my music and picture section and have noticed my library of MP3 tracks, well over a thousand have disappeared. Then My Pictures most of them like well over a thousand have vanished. I am seriously annoyed. Is there some kind of software I can run that can scan my computer to see where these mp3's and pictures have been sent to? And if the scan finds nothing, can it restore the mp3's and pictures if they have in fact been erased?
Lastly, after I have done that, I would want to back up everything onto some dvd+r discs and then wipe my hard drive and defrag and then reinstall windows. How would I have to go about doing these task?
I really hope I can get some further help on this
Many thanks