Rule 1: Know which hat you are wearing.
You are taking on a managerial position. That means that you programming days are over. You can't do the fun technical stuff and manage people at the same time. That doesn't mean that you can't jump in and help one of your workers, but you can't spend much time at it.
Rule 2: Back your people.
Your main job is to insulate your workers from upper management, and facilitate interaction with other levels of the company. If one of your guys needs access to resources in other departments, you have to negotiate that for them. Don't let anyone else assign tasks to your workers, and especially don't let anyone else discipline them. That's your job. Make your praises in public and your criticisms behind closed doors.
Rule 3: Delegate and follow-up.
Once you have done those project management thingys to generate the tasks to perform, you have to get your workers to do them. How you do that is your own style. You can be all supreme dictator, or nice and paley-waley. You can assign the tasks youself, or let them chose. The only thing is you have to be consistant.
You need feedback to see how they are performing. That may mean periodic meetings and reports, or just visiting them occasionally to see what they are up to. Keep your BS filter on high, because you are going to get only an incomplete version of the truth.
Assuming you have determined that there is a problem, you have to react before things get out of hand. You may have to pull the employee off the job, or even fire him. Perhaps it is a personal problem that interferes with the work environment. You may need additional resources - more programmers, computers, printers, secretaries, etc. Sometimes the best action is to do nothing right now.
Rule 4: Substantiate your own BS.
If you make a promise to an employee, make sure you remember it, and follow through. If you are making a claim to upper management such as an estimate, try to make it at least plausable. Try not to be railroaded into making a decision you are not comfortable with. Most decisions can be postponed.