I don't think you can have your internet connection start with opening Yahoo Messenger. BUT you can tell Yahoo Messenger to automatically log in when I connect to the internet.
Is there a way to get my internet connection to automatically connect when I open Yahoo! Messenger alone. At the moment, I either have to open Internet Explorer (which automatically connects me to the internet), or either manually connect to the internet before I can use Yahoo! Messenger.