PDA

View Full Version : Marked text in TextBox



separator
05-20-2005, 05:10 AM
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 ?

mark007
05-28-2005, 02:54 AM
I can't understand what you mean....do you mean a masked textbox rather than marked? Could you try explaining again...

Bob Phillips
05-30-2005, 03:59 AM
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!

With TextBox1
.Text = "This is a simple message"
.SelStart = 0
.SelLength = Len(.Text)
.SetFocus
End With



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.


3. In TextBox all date putting in a line. Can I make it more good looking. Like in simple text redactor ?


TextBox1.Text = "This is a simple " & vbNewLine & "message"



and set the Multiline property of the textbox to True.