One way that many of us cope with this problem is to disappear into our heads, leaving our emotions behind. There are many destructive ways of accomplishing that, and many constructive ways too. You can turn your challenge into a gift. Here's what I did.
Harness your distress into a passion for making a better future for yourself. Study. Bury your head in schoolwork. Do extra homework. Take harder classes. If you find that you're dwelling on your desires... think about the future. Studying today, excelling in school today, will translate into better opportunities for higher education, which will translate into better job opportunities in the future. If you don't have a career in mind, don't worry quite yet. If you do, try to hone the skills you'll need in that career.
Say to yourself "I can't dress how I want to dress today, but if I get down and work today, I'll be free to be myself once I move out of the house. Let's do it." It might help to think about where you want to live. Think about moving to a city; and not necessarily one near to where you live now. A big move can go a long way in freeing you to be you -- you'll have a whole new community to learn, and if you can be your genuine self, you can find others who will accept you -- that's a lot easier if you don't already know a bunch of people... the judgment of strangers is much easier to handle than that of acquaintances.