Archive Browser
Download Cyotek.Windows.Forms.ImageBox.zip version 1.1.4.2, last updated 13/02/2014 (1.62 MB)
Download- md5: eafe88cd279eec36bc79f6409f0fc49d
using System;
using System.Drawing;
using System.Windows.Forms;
namespace Cyotek.Windows.Forms.Demo
{
// Cyotek ImageBox
// Copyright (c) 2010-2014 Cyotek.
// http://cyotek.com
// http://cyotek.com/blog/tag/imagebox
// Licensed under the MIT License. See imagebox-license.txt for the full text.
// If you use this control in your applications, attribution, donations or contributions are welcome.
internal partial class BaseForm : Form
{
#region Public Constructors
public BaseForm()
{
this.InitializeComponent();
}
#endregion
#region Overridden Methods
protected override void OnLoad(EventArgs e)
{
this.Font = SystemFonts.MessageBoxFont;
base.OnLoad(e);
}
protected override void OnShown(EventArgs e)
{
base.OnShown(e);
Cursor.Current = Cursors.Default;
}
#endregion
#region Protected Members
protected string FormatPoint(Point point)
{
return string.Format("X:{0}, Y:{1}", point.X, point.Y);
}
protected string FormatRectangle(RectangleF rect)
{
return string.Format("X:{0}, Y:{1}, W:{2}, H:{3}", (int)rect.X, (int)rect.Y, (int)rect.Width, (int)rect.Height);
}
#endregion
}
}
Donate
This software may be used free of charge, but as with all free software there are costs involved to develop and maintain.
If this site or its services have saved you time, please consider a donation to help with running costs and timely updates.
Donate