How does one stay happy and shake-off the feeling of being unhappy and lonely whilst you have the people around you who care about you?

I try not to let sadness get in my way, I try to smile even when I am not fine and I try to control my emotions to switch to a happy mood  but all of this does not seem to work. It’s as if I must understand and adapt to this feeling but I do not want to.

I wish there was a remedy to eliminate this feeling forever.