I am trying to create a simple Kiosk-style web browser for work. This is supposed to rotate between two internet tabs automatically. There will NEVER be any user input. Static web pages, preassigned, and only for display in our main office. I am using a C#.NET WPF app with a TabControl and a web browser in each tab. I can preassign a web page to each tab, easy stuff. What I cannot do is generate the infinite loop to constantly switch between the two tabs. Any loop whatsoever [while(true), for(;;), do-while(true)] will keep the form from loading at all. The code provided is my attempt at just generating the web pages within the loop first, then I'll go back and add the logic for the auto-switching.
namespace LoopNet
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
while(true)
{
Calendar1.Navigate("http://www.google.com");
GIS1.Navigate("http://www.YouTube.com");
}
}
}
}