Archive Browser
Download ChemotaxisSimulation.zip, last updated 02/11/2020 (529.88 KB)
Download- md5: d0f0a74f8f3c043fabf60aeb07356f69
- sha1: 645a77d0f7184873fe70c2bb375833e564b348be
- sha256: da9ab3cfc5e17e120b6660a137012b6eca68a7a3218cb213b3e0e3eb9445b104
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
// Reading DOOM WAD files
// https://www.cyotek.com/blog/reading-doom-wad-files
// Writing DOOM WAD files
// https://www.cyotek.com/blog/writing-doom-wad-files
// Copyright © 2020 Cyotek Ltd. All Rights Reserved.
// This work is licensed under the MIT License.
// See LICENSE.TXT for the full text
// Found this example useful?
// https://www.paypal.me/cyotek
namespace Cyotek.Demo.Windows.Forms
{
internal class BaseForm : System.Windows.Forms.Form
{
#region Protected Constructors
protected BaseForm()
{
base.MaximizeBox = false;
base.MinimizeBox = false;
base.ShowIcon = false;
base.ShowInTaskbar = false;
base.StartPosition = FormStartPosition.CenterParent;
base.FormBorderStyle = FormBorderStyle.FixedDialog;
}
#endregion Protected Constructors
#region Public Properties
[DefaultValue(typeof(FormBorderStyle), "FixedDialog")]
public new FormBorderStyle FormBorderStyle
{
get { return base.FormBorderStyle; }
set { base.FormBorderStyle = value; }
}
[DefaultValue(false)]
public new bool MaximizeBox
{
get { return base.MaximizeBox; }
set { base.MaximizeBox = value; }
}
[DefaultValue(false)]
public new bool MinimizeBox
{
get { return base.MinimizeBox; }
set { base.MinimizeBox = value; }
}
[DefaultValue(false)]
public new bool ShowIcon
{
get { return base.ShowIcon; }
set { base.ShowIcon = value; }
}
[DefaultValue(false)]
public new bool ShowInTaskbar
{
get { return base.ShowInTaskbar; }
set { base.ShowInTaskbar = value; }
}
[DefaultValue(typeof(FormStartPosition), "CenterParent")]
public new FormStartPosition StartPosition
{
get { return base.StartPosition; }
set { base.StartPosition = value; }
}
#endregion Public Properties
#region Protected Methods
protected override void OnLoad(EventArgs e)
{
if (!this.DesignMode)
{
this.Font = SystemFonts.MessageBoxFont;
}
base.OnLoad(e);
}
protected override void OnShown(EventArgs e)
{
base.OnShown(e);
Cursor.Current = Cursors.Default;
}
#endregion Protected Methods
}
}
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