private void SendCedeFocusEvent(IPAddressControlDirection ipAddressControlDirection, IPAddressControlSelection ipAddressControlSelection) { if (null != CedeFocusEvent) { CedeFocusEventArgs args = new CedeFocusEventArgs(); args.FieldIndex = FieldIndex; args.IPAddressControlAction = IPAddressControlAction.None; args.IPAddressControlDirection = ipAddressControlDirection; args.IPAddressControlSelection = ipAddressControlSelection; CedeFocusEvent(this, args); } }
public void TakeFocus(IPAddressControlDirection ipAddressControlDirection, IPAddressControlSelection ipAddressControlSelection) { Focus(); if (ipAddressControlSelection == IPAddressControlSelection.All) { SelectionStart = 0; SelectionLength = TextLength; } else { SelectionStart = (ipAddressControlDirection == IPAddressControlDirection.Forward) ? 0 : TextLength; } }
private void SendCedeFocusEvent(IPAddressControlDirection ipAddressControlDirection, IPAddressControlSelection ipAddressControlSelection) { if (null != this.CedeFocusEvent) { CedeFocusEventArgs args = new CedeFocusEventArgs { FieldIndex = this.FieldIndex, IPAddressControlAction = IPAddressControlAction.None, IPAddressControlDirection = ipAddressControlDirection, IPAddressControlSelection = ipAddressControlSelection }; this.CedeFocusEvent(this, args); } }
public void TakeFocus(IPAddressControlDirection ipAddressControlDirection, IPAddressControlSelection ipAddressControlSelection) { Focus(); if (ipAddressControlSelection == IPAddressControlSelection.All) { SelectionStart = 0; SelectionLength = TextLength; } else SelectionStart = (ipAddressControlDirection == IPAddressControlDirection.Forward) ? 0 : TextLength; }
public void TakeFocus(IPAddressControlDirection ipAddressControlDirection, IPAddressControlSelection ipAddressControlSelection) { this.Focus(); if (ipAddressControlSelection == IPAddressControlSelection.All) { this.SelectionStart = 0; this.SelectionLength = this.TextLength; } else this.SelectionStart = (ipAddressControlDirection == IPAddressControlDirection.Forward) ? 0 : this.TextLength; }