private void ShowWindowForFailingFile(Location errorLocation) { Cursor.Current = Cursors.WaitCursor; try { Form form = CreateEmptyWindowForFile(errorLocation.FileName); ViewSourceControl viewSource = new ViewSourceControl(); viewSource.Text = errorLocation.FileSource; viewSource.Dock = DockStyle.Fill; form.Controls.Add(viewSource); form.Show(); viewSource.ScrollToOffset(errorLocation.Offset); } finally { Cursor.Current = Cursors.Default; } }