It is possible with visual studio, just you've to take sometime in the design, as park4bmx said. Nevertheless, I think, there's no need of this shitty things.
Because, when we run this programs, there's a parameter "samp.exe 182.323.42.1" or something, so it's directly/indirectly connected to our SA-MP program, which re-directs' us to the sa-mp client, to add that server in our favorites.
I know one more shit, when you open/start the program, it has options, "Play now","Add to favorites" and I don't know, but it comes. And, after choosing the "add to favorites", you'll get an error (if SA-MP is running), a instance of SA-MP is already running. So, what's the point behind it. In my opinion, "Copy & Pasting" IP is much more better than wasting your time in this shits. Just do one thing, 'select' the IP, and use "CTRL+C" and after clicking on
Icon, and you're done. Sorry for going that deep, xD.