protected internal virtual void RaiseInvalidCharacter(InvalidCharacterEventArgs e) { InvalidCharacterEventHandler handler = (InvalidCharacterEventHandler)this.Events[invalidCharacter]; if (handler != null) { handler(GetEventSender(), e); } }
private void ProcessInvalidCharacter(string insertion) { InvalidCharacterEventArgs args = new InvalidCharacterEventArgs(insertion); this.Properties.RaiseInvalidCharacter(args); if (args.Handled) { return; } this.ToolTipController.ShowBeak = true; this.ToolTipController.ShowHint("An editor can accept only numbers or maximum length achieved", this.PointToScreen(Point.Empty)); }
private void repositoryItemCustomEdit1_InvalidCharacter(object sender, InvalidCharacterEventArgs e) { // if you need to show a custom tooltip, do this in this event and set the e.Handled property to True to prevent the default tooltip }