CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2000
    Location
    NE,USA
    Posts
    27

    masked edit text box

    when the masked edit box receives the focus I'd like the text in the box to all be selected for easy replacement...due to a date picker dialog I cannot use a simple solution which was to blank the edit box when it receives focus because that simply removes the date selected from the calendar dialog form.

    DLW68


  2. #2
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    Re: masked edit text box

    why couldn't you do something like this:

    With MaskEdBox1
    .SelStart = 0
    .SelLength = len(.Text)
    End With




    the text will be selected whenever the masked edit box receives the focus.

    hope this helps,

    John

    John Pirkey
    MCSD
    http://www.ShallowWaterSystems.com
    http://www.stlvbug.org
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

  3. #3
    Join Date
    Jun 2000
    Location
    NE,USA
    Posts
    27

    Re: masked edit text box

    errr...were those always there?!?

    *Looks around sheepishly waiting for other programmers to make fun of him*


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

Featured