I want to make a program in Visual Studio 2008 in Visual Basic. It involves a web browser and I want to make it auto refresh and allow people to choose the time period in wh
I would make a setting in "Properties > Settings" Tab for the interval you want to set for this I am going to name it unlimitRefresh and make sure it is a string and set the scope to user. After that I would make the interval options a DropDown button with every interval you want set and then I would make a two timers and for the first one I would set the interval to 1 and have it find out what the settings tab says. Then for the code for that I would type:
Timer2.Interval = My.Settings.unlimitRefresh
And then for timer one set that to whatever you want it on. Then for the code I would type:
WebBrowser1.Refresh()
After you are done just go to your dropdown button and double click each button for code and after that you type in:
My.Settings.unlimitRefresh = TYPE-THE-INTERVAL-HERE
Example:
My.Settings.unlimitRefresh = 100
After that it should work fine.
Also, I do realize this post is really old but just in case somebody does view it.