Results 1 to 3 of 3

Thread: Mask Edit Control

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2002
    Location
    Malaysia
    Posts
    124

    Mask Edit Control

    How can I reset the text in Mask Edit Control?
    for example, I can reset the text in TextBox using TextBox1.ResetText() OR TextBox1.Text = "". But why Mask Edit Control
    VB Code:
    1. MaskEdit.ResetText()
    cannot be used?

  2. #2
    Member
    Join Date
    Jul 2003
    Location
    Sweden
    Posts
    62
    It didn´t work with maskedit.text="" ?
    or maskedit.text=DBNull.Value ?
    //Martin Andersson

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Nov 2002
    Location
    Malaysia
    Posts
    124
    yeah, it didn't work, but never mind, I used another way to do this and it worked!!
    VB Code:
    1. MaskEditTime.SelStart = 0
    2.         MaskEditTime.SelLength = 5
    3.         MaskEditTime.SelText = ""

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width