Amista,
I'm also quite thin and an ectomorph. I've found that lifting heavy weights about 4 times per week has kept me lean and given me exceptional muscle definition. Another factor in gaining muscle and not fat is what, how much, and when you eat. To gain muscle you need protein, about 25...