Archive Browser
Download ScriptingHost-Jint2.zip, last updated 31/08/2020 (66.93 KB)
Download- md5: 3ee9967fdf782810e5e943f1b7e319f9
- sha1: 865279a70fc8634273c37a85ff8a5bffd21087c3
- sha256: 1a5c1588ba9e8f2390f5f3bd41f0c7f4b8c86feb65c9cf1b460aca49488addfc
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