MPTagThat.FileNameToTag.FileNameToTag.cbFormat_Keypress C# (CSharp) Method

cbFormat_Keypress() private method

Don't allow invalid characters to be entered into the Format Field
private cbFormat_Keypress ( object sender, KeyPressEventArgs e ) : void
sender object
e KeyPressEventArgs
return void
        private void cbFormat_Keypress(object sender, KeyPressEventArgs e)
        {
            switch (e.KeyChar)
              {
            case '|':
            case '"':
            case '/':
            case '*':
            case '?':
            case ':':
              e.Handled = true;
              break;
              }
        }