Home Forums WinForms controls Xceed Grid for WinForms loop in myEditorTextBox

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #13496 |

    Dim Mask As New myEditorTextBox
    Grid1.Columns(3).CellEditor = Mask

    ————————————————————————

    Public Class myEditorTextBox
    Inherits GridTextBox

    Protected Overrides Sub OnKeyPress(ByVal e As System.Windows.Forms.KeyPressEventArgs)
    If Asc(e.KeyChar) = 45 Then
    e.Handled = True
    SendKeys.Send(“@”) <<<<<<<<<<<<<<<< ‘ lunch a hidden loop!!??!?! 🙁
    End If
    End Sub
    End Sub

    Thanks.

    Imported from legacy forums. Posted by AndreaZ (had 596 views)

    User (Old forums)
    Member
    Post count: 23064

    What are you trying to do? Replace ‘-‘ with ‘@’?

    Instead of SendKeys.Send(“@”), try this: SelectedText = “@”

    Imported from legacy forums. Posted by Tommy (had 167 views)

    User (Old forums)
    Member
    Post count: 23064

    Thanks!!

    Imported from legacy forums. Posted by AndreaZ (had 3199 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.