Was just experimenting with the VB TextBox ...

1) Disabling the TextBox turns the text grey. It does not accept or respond to any mouse or keyboard input. Setting the ForeColor of the text doesn't help - its still grey.

2) Locking the TextBox just makes the TextBox read-only. It still "responds" to mouse clicks and keyboard input - just that you can't add or delete or change any of the contents.

If I was needing something like a disabled textbox - but without the grey - I would tend to use a Label that looks like a textbox, example:

code:
;
; KIXTART 4.0
; KIXFORMS 2.0.3
;

Break On

$Form = CreateObject("Kixtart.Form")
$Form.FontSize = 10
$Form.Center

$Label = $Form.Label
$Label.Size = 200,200
$Label.Center
$Label.BackColor = 255,255,255
$Label.BorderStyle = 2

$Label.Text = "Currently running:" + @CRLF
$Label.Text = $Label.Text + " Kixtart Version : " + @KIX + @CRLF
$Label.Text = $Label.Text + " Kixforms Version : " + $Form.Version

$Form.Show
While $Form.Visible
$=Execute($Form.DoEvents)
Loop

Exit 1

-Shawn

[ 25. August 2002, 18:37: Message edited by: Shawn ]