Cleanup of using statements

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2149 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-10-17 12:21:12 +00:00
commit 4de75cdb69
68 changed files with 74 additions and 467 deletions

View file

@ -18,17 +18,16 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using System;
/// <summary>
/// See: http://nickstips.wordpress.com/2010/03/03/c-panel-resets-scroll-position-after-focus-is-lost-and-regained/
/// </summary>
namespace GreenshotPlugin.Controls {
public class NonJumpingPanel : System.Windows.Forms.Panel {
protected override System.Drawing.Point ScrollToControl(System.Windows.Forms.Control activeControl) {
// Returning the current location prevents the panel from
// scrolling to the active control when the panel loses and regains focus
return this.DisplayRectangle.Location;
}
protected override System.Drawing.Point ScrollToControl(System.Windows.Forms.Control activeControl) {
// Returning the current location prevents the panel from
// scrolling to the active control when the panel loses and regains focus
return this.DisplayRectangle.Location;
}
}
}