Dual Monitor setup help

I'm trying to hook up 2 monitors by using a DVI connection for my primary monitor and a hdmi connection for my secondary monitor. I am able to get input on my primary monitor via dvi but when i plug my second monitor in via hdmi, my primary monitor shows only the background and i cant access my cursor on my first monitor so i can't detect my second monitor. Anyone know anything about this?