Consulting

Results 1 to 3 of 3

Thread: Marked text in TextBox

  1. #1
    VBAX Regular
    Joined
    Mar 2005
    Location
    Latvia; Germany
    Posts
    19
    Location

    Question Marked text in TextBox

    Hello!
    1.So I want to put some text in TextBox. And make it marked. So if user start put date in TextBox - this text go away!
    2.And also if it posible to make some group of this text. So like at first go away one, then next.. ?
    3. In TextBox all date putting in a line. Can I make it more good looking. Like in simple text redactor ?

  2. #2
    BoardCoder
    Licensed Coder
    VBAX Expert mark007's Avatar
    Joined
    May 2004
    Location
    Leeds, UK
    Posts
    622
    Location
    I can't understand what you mean....do you mean a masked textbox rather than marked? Could you try explaining again...
    "Computers are useless. They can only give you answers." - Pablo Picasso
    Mark Rowlinson FIA | The Code Net

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by separator
    1.So I want to put some text in TextBox. And make it marked. So if user start put date in TextBox - this text go away!
    [VBA] With TextBox1
    .Text = "This is a simple message"
    .SelStart = 0
    .SelLength = Len(.Text)
    .SetFocus
    End With
    [/VBA]

    Quote Originally Posted by separator
    2.And also if it posible to make some group of this text. So like at first go away one, then next.. ?
    Not really, this would take a lot of messy code to tray and manage this. Too many variables.

    Quote Originally Posted by separator
    3. In TextBox all date putting in a line. Can I make it more good looking. Like in simple text redactor ?
    [VBA]
    TextBox1.Text = "This is a simple " & vbNewLine & "message"

    [/VBA]

    and set the Multiline property of the textbox to True.

Posting Permissions

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