probably youre headlight switch . try pulling it out slowly,see if youre dash stays on.if not turn on youre lights and go under the dash and wiggle around the wiring harness that goes to the switch,if they come on you might have to replace the switch,but check first if there is not a wire that has the insulation rubbed through(damaged)but this problem is usually the switch.hope this helps
dave