vb6 gray out text boxes
#1
Posted 27 June 2005 - 10:05 AM
#2
Posted 27 June 2005 - 10:30 AM
#3
Posted 27 June 2005 - 12:34 PM
#4
Posted 27 June 2005 - 01:40 PM
#5
Posted 27 June 2005 - 05:49 PM
#6
Posted 28 June 2005 - 01:14 AM
'Greys it out and you can't select it or anything.
---
Text1.Locked = True
'Disables a user from being albe to type/paste text into it.
---
Text1.Backcolor = #8C8C8C
'Will just change the backcolor of the TextBox to grey.
---
Text1.Forecolor = #8C8C8C
'Will just change the color of the text to grey.
Does that cover what your trying to do to the TextBox?
#7
Posted 29 June 2005 - 11:01 AM
#8
Posted 23 November 2014 - 02:23 AM
After what FrOzeN mentioned,
enter
Command1.SetFocus
in
Text1_GotFocus()
event to divert the focus pointer inside the textbox to some other Object/Tool like Command button.
Otherwise there will be a cursor blinking inside the textbox that will irritate us.
This works in VB6
However
Text1.Backcolor = #8C8C8C
Text1.Forecolor = #8C8C8C
doesnt work - I dont understand.
#9
Posted 11 December 2014 - 06:34 PM
Is there any reason why you are using vb6 over VB?
Similar Topics
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users