You're not the only one struggling. I struggle with homosexual thoughts myself. Though I have never physically acted on them, they still plague me. This scripture has really encouraged me:
Matthew 26:41
Watch and pray, lest you enter into temptation. The spirit indeed is willing, but the flesh is weak.
We can try all we can to please the Lord by doing things that we think will please Him even if it doesn't please us. It is only by God's power can we turn away from temptation and thus not sin.
This is the one thing that will save us from temptation: KNOW GOD AND BE KNOWN BY HIM.
What I mean is that we must have our relationship with God be our priority. Talk to Him everyday, read the Bible, in everything (even the sad and angry times) worship Him. Ask God to reveal His attributes (characteristics, who He is) to you. Also we must let Him know us. Tell Him about yourself even though He already knows. Strengthen your relationship with Him.
If our goal in life is to please God then we will fail. If our goal is to KNOW God is a real and intimate way and for Him to know us then pleasing Him will result from that. You want to please someone you love right? If God is the one person you love more than anyone then pleasing Him should be easy. Also, as Christians we have the Holy Spirit which helps us please Him.
The more we know God and let Him know us, the more we don't even want to displease Him. What He finds displeasing, we will find displeasing. A strong relationship with God changes our desires. We will desire what God desires and will not desire what God does not desire.
The point is this: We cannot change our desires, only God can but that does not happen until God is our biggest desire of all. He will handle everything else. Proverbs 3:5-6
5Trust in the LORD with all your heart
And do not lean on your own understanding.
6In all your ways acknowledge Him,
And He will make your paths straight.
Do not lean on yourself, don't even trust yourself, trust God, lean on Him. Acknowledge Him also means submit to. Submit yourself to God and He will show you the way that pleases Him and you will desire to go that way because you love Him.
I confirm this from my own experience. The closer I am with Jesus, the more I don't desire the homosexual thoughts and temptations and they are easier to flee from.