

We don't need to fool around with the WoeID combo box as it is synced to the zipcode combo box. We do the same thing for the states combo box and the cities combo box.
YAHOO WEATHER API VBA EXAMPLE CODE
In the next 4 code blocks below are the subs for the animation.Ĭopy Code Private Sub OpentextFile( ByVal fname As String)ĭim strFile As String Try Dim strParts() As Stringįs = New FileStream(fname, FileMode.Open, FileAccess.Read)Ĭ(strParts( 0)) To do the scrolling, first we must add the panels to a List, set the panels locations, then we use a timer with a couple of button click events. I placed them in sequential order when scrolling (forward and backwards). I placed 4 of them off the screen so that they could not be seen. To get started with the animation, I first added 5 panels to the form. I had to change some of his code to work with this app, but all-in-all, it's still his Idea. I had to come up with a solution to move the panels (Left-to-Right and Right-to-Left) so I asked a question in the VB forum and Fredrik Bornander came up with a solution that worked very well. The library is a bit larger than the original because of the way it was designed. This weather app uses a re-write of Farhad Siasar's YahooWeathertlb and is now called " pWeatherLib.dll". There is also a Daffy Duck Cursor that I use quite a bit for all my applications.

A splashscreen was also added because the weather app takes a while to boot up. I used horizontal bar styles to display the temperature, wind velocity and wind direction using Steve Lows "NextUI library". The WoeID is used to retrieve the 5-day forecast only. I added these so you wouldn't have to go searching through Yahoo to find your WoeID. The WoeID combobox is in sync with the zipcode combobox. In this folder are the 50 states' text files that contain all the cities, towns, villages, and townships. I added a folder in the Debug folder called "states". The application has panel animation (thanks to Fredrik Bornander) that imitates CloneDVD2's sliding frames and I also added some taskbar buttons using the WindowsAPICodePack. It displays the local weather and 4 maps (Radar, IR Satellite, HeatIndex and WindChill).

YAHOO WEATHER API VBA EXAMPLE FULL
This is a full weather application complete with 2-Day and 5-Day forecasts.
