/[EmuXPortal]/branches/mono/EmuXPortal/Form1.cs
ViewVC logotype

Diff of /branches/mono/EmuXPortal/Form1.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/EmuXPortal/Form1.cs	2014/08/04 10:37:13	198
+++ trunk/EmuXPortal/Form1.cs	2014/08/04 13:06:19	208
@@ -176,7 +176,17 @@
                 currentPosition = rom_flow.VerticalScroll.Value;
                 if ((currentPosition - changeAmount) < rom_flow.VerticalScroll.Maximum)
                 {
-                    rom_flow.VerticalScroll.Value += changeAmount;
+                    try
+                    {
+                        rom_flow.VerticalScroll.Value += changeAmount;
+                    }
+                    catch
+                    {
+                        rom_flow.Controls[0].Select();
+                        rom_flow.ScrollControlIntoView(rom_flow.Controls[0]);
+                        rom_flow.PerformLayout();
+                        return;
+                    }
                 }
                 else
                 {

 

  ViewVC Help
Powered by ViewVC 1.1.22