[quoted text, click to view] "jjrdk" <jjrdk@spamme.com> wrote in message
news:434e2ece$0$11145$626a14ce@news.free.fr...
>>
> You could use the ReadOnly property. Otherwise use a label.
>
> jjrdk
fwiw, that's (kind of) what I do... When I disable textboxes, in general, I
set Locked = True (ReadOnly around here, I guess) and change their back
color to vbButtonFace (not sure what the .Net'ish declaration is). Doing
that makes them look like a label. The user doesn't expect to be able to
type in them. They are surprised when they find they can copy text from them
(a bonus <g>).
I figure that.... since quite a few Windows Dialogs use that technique, it
should be Ok for me to use <g> To see a Windows Dialog that works like this,
just right click any file, select Properties. One of the first things to
show on the dialog is a label saying "Type of File", with another "label"
next to it showing the file type. The text in that label can be selected and
copied to the clipboard, so it's surely not a "true" label. Same with the
one that says "Opens With:".... the app name showing in that field can be
selected and copied to the clipboard.
--
Ken Halter - MS-MVP-VB (visiting from VB6 world) -
http://www.vbsight.com Please keep all discussions in the groups..