Hi
I have dyed curtains in the washing machine quite successfully you have to add salt as well to the machine and make sure you put the machine on for 2 empty washes afterwards to wipe all traces of dye. The brand of dye normally sold is dylon have a look on their website
http://www.dylon.co.uk/ and you will probably find everything you need to know.
Hope this helps
Sparkwell