Initial population

This commit is contained in:
Jon
2026-03-07 19:22:22 -06:00
parent 647f55feb9
commit cae1a3ec46
108 changed files with 28484 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JRCookbookControls
{
public class JRCookbookMaskedTextBox: System.Windows.Forms.MaskedTextBox
{
private bool _blnMaskFullOnEnter = false;
private bool _blnAutoTab = false;
public JRCookbookMaskedTextBox()
{
this.Enter += new System.EventHandler(this.MaskedTextBox_Enter);
this.TextChanged += new System.EventHandler(this.MaskedTextBox_TextChanged);
}
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public bool AutoTab
{
get
{
return _blnAutoTab;
}
set
{
_blnAutoTab = value;
}
}
private void MaskedTextBox_Enter(System.Object sender, System.EventArgs eventArgs)
{
_blnMaskFullOnEnter = this.MaskFull;
}
private void MaskedTextBox_TextChanged(System.Object sender, System.EventArgs eventArgs)
{
//Auto-tab if the mask is full
if (AutoTab)
{
if (_blnMaskFullOnEnter == false)
{
if (this.Focused)
{
if (this.MaskFull)
{
this.Parent.SelectNextControl(this, true, true, true, true);
}
}
}
}
}
}
}