Alvin’s Blog

December 13, 2007

WPF – DoEvents()

Filed under: WPF — amcbride @ 5:50 pm
        /// <summary>
        /// Allows the completion of any UI processing
        /// </summary>
        private void DoEvents()
        {
            Application.Current.Dispatcher.Invoke(DispatcherPriority.Background, new ThreadStart(delegate { }));
        }

December 12, 2007

WPF – Execute UI code in separate Thread

Filed under: WPF — amcbride @ 11:06 pm
this.Dispatcher.Invoke(DispatcherPriority.Normal, (MyDelegate) delegate()
     {
          // Only if we should show progress 
          if (_ShowProgress == true)
          {
               Wait.Visibility = Visibility.Visible;
               DoEvents();
          }
     }

December 9, 2007

Windows – Modify host file to associate name with IP

Filed under: Windows — amcbride @ 2:16 am

Modify the following file…

C:\Windows\System32\drivers\etc\hosts

 .. using notepad.exe

Blog at WordPress.com.