For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > January 2006 > VB6 Forms.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author VB6 Forms.
Wiley Coyote

2006-01-09, 7:15 pm

G'day.

I have severl forms that I quite like. On these forms, I have a series TEXT
boxes that are used to display data (duh...). Anyway, I need to have these
boxes DISABLED - no biggy. The problem is that the text appears very SOFT
and WASHED OUT - even when I specify a BOLD attribute.

Without using LABELS (I would have to do a bunch of editing), is there a way
that I can display the text in the TEXT boxes so it does not appear all SOFT
and Washed Out?

I've tried many different fonts, changed the Pallette and System Colors etc.
This is quite annoying.

TX in advance.

Wiley


Bob Butler

2006-01-09, 7:15 pm

"Wiley Coyote" <wiley@mentorits.com> wrote in message
news:OUg6wLaBGHA.2840@TK2MSFTNGP12.phx.gbl
> G'day.
>
> I have severl forms that I quite like. On these forms, I have a
> series TEXT boxes that are used to display data (duh...). Anyway, I
> need to have these boxes DISABLED - no biggy. The problem is that the
> text appears very SOFT and WASHED OUT - even when I specify a BOLD
> attribute.
>
> Without using LABELS (I would have to do a bunch of editing), is
> there a way that I can display the text in the TEXT boxes so it does
> not appear all SOFT and Washed Out?
>
> I've tried many different fonts, changed the Pallette and System
> Colors etc. This is quite annoying.


Put a frame on the form, select and cut all of the textboxes, select the
frame and paste them back onto it and then disable the frame.

Either that or set the .Locked property to True for all of the textboxes.
Users will be able to select and copy text but not change them.

--
Reply to the group so all can participate
VB.Net: "Fool me once..."

GrandNagel

2006-01-09, 7:15 pm

IIRC, (been a while)

Theres a locked property on text boxes as well... Change the colors as you wish
when you toggle the locked state (if you'll do that at all).

D.


Wiley Coyote wrote:
> G'day.
>
> I have severl forms that I quite like. On these forms, I have a series TEXT
> boxes that are used to display data (duh...). Anyway, I need to have these
> boxes DISABLED - no biggy. The problem is that the text appears very SOFT
> and WASHED OUT - even when I specify a BOLD attribute.
>
> Without using LABELS (I would have to do a bunch of editing), is there a way
> that I can display the text in the TEXT boxes so it does not appear all SOFT
> and Washed Out?
>
> I've tried many different fonts, changed the Pallette and System Colors etc.
> This is quite annoying.
>
> TX in advance.
>
> Wiley
>
>

Douglas Marquardt

2006-01-09, 7:15 pm

Hi Wiley:

A couple of things you could try...

Lock the textboxes instead of disabling them
and set the back/fore colors as desired.

Place the textboxes on a frame and disable
the frame (and set colors as desired).

hth,

Doug.


"Wiley Coyote" <wiley@mentorits.com> wrote in message news:OUg6wLaBGHA.2840@TK2MSFTNGP12.phx.gbl...
> G'day.
>
> I have severl forms that I quite like. On these forms, I have a series TEXT
> boxes that are used to display data (duh...). Anyway, I need to have these
> boxes DISABLED - no biggy. The problem is that the text appears very SOFT
> and WASHED OUT - even when I specify a BOLD attribute.
>
> Without using LABELS (I would have to do a bunch of editing), is there a way
> that I can display the text in the TEXT boxes so it does not appear all SOFT
> and Washed Out?
>
> I've tried many different fonts, changed the Pallette and System Colors etc.
> This is quite annoying.
>
> TX in advance.
>
> Wiley
>
>



Wiley Coyote

2006-01-09, 7:15 pm

Thanks dudes. I've tried the Locked Property and it does a great job. The
problem is that users can copy the contents of the boxes - which is BAD,
BAD, BAD.

Anyway, I tried the FRAME concept and it does exactly what I wanted - Thanks
Bob.

GrandNagel, prior to the post I tried that and as mentioned above it worked,
but alas the COPY contents is an issue.


Doug, please see above.

Thanks to all

--
Wiley
Credo: Let people think you're a fool, rather than open mouth and remove all
doubt!



"Wiley Coyote" <wiley@mentorits.com> wrote in message
news:OUg6wLaBGHA.2840@TK2MSFTNGP12.phx.gbl...
> G'day.
>
> I have severl forms that I quite like. On these forms, I have a series
> TEXT boxes that are used to display data (duh...). Anyway, I need to have
> these boxes DISABLED - no biggy. The problem is that the text appears very
> SOFT and WASHED OUT - even when I specify a BOLD attribute.
>
> Without using LABELS (I would have to do a bunch of editing), is there a
> way that I can display the text in the TEXT boxes so it does not appear
> all SOFT and Washed Out?
>
> I've tried many different fonts, changed the Pallette and System Colors
> etc. This is quite annoying.
>
> TX in advance.
>
> Wiley
>
>



Ken Halter

2006-01-09, 7:15 pm

"Wiley Coyote" <wiley@mentorits.com> wrote in message
news:O2XXmXaBGHA.1028@TK2MSFTNGP11.phx.gbl...
> Thanks dudes. I've tried the Locked Property and it does a great job. The
> problem is that users can copy the contents of the boxes - which is BAD,
> BAD, BAD.
>
> Anyway, I tried the FRAME concept and it does exactly what I wanted -
> Thanks
> Bob.
>
> GrandNagel, prior to the post I tried that and as mentioned above it
> worked,
> but alas the COPY contents is an issue.
>
>
> Doug, please see above.
>
> Thanks to all
>
> --
> Wiley
> Credo: Let people think you're a fool, rather than open mouth and remove
> all doubt!



My question is.... how do the users know they're disabled? That "greyed out
look" has a meaning. Side stepping functionality that's been in place since
Windows has been around may (or should) be confusing to the users.
Hopefully, at least the frame has a greyed out caption..... right? <g>

--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Freeware 4 color Gradient Frame? http://www.vbsight.com/GradFrameCTL.htm


Ted

2006-01-09, 7:15 pm

Then use labels.

"Wiley Coyote" <wiley@mentorits.com> wrote in message
news:O2XXmXaBGHA.1028@TK2MSFTNGP11.phx.gbl...
> Thanks dudes. I've tried the Locked Property and it does a great job. The
> problem is that users can copy the contents of the boxes - which is BAD,
> BAD, BAD.
>
> Anyway, I tried the FRAME concept and it does exactly what I wanted -
> Thanks
> Bob.
>
> GrandNagel, prior to the post I tried that and as mentioned above it
> worked,
> but alas the COPY contents is an issue.
>
>
> Doug, please see above.
>
> Thanks to all
>
> --
> Wiley
> Credo: Let people think you're a fool, rather than open mouth and remove
> all doubt!
>
>
>
> "Wiley Coyote" <wiley@mentorits.com> wrote in message
> news:OUg6wLaBGHA.2840@TK2MSFTNGP12.phx.gbl...
>
>



Wiley Coyote

2006-01-09, 7:16 pm

The "Grayed Out" look is fine and the users know it (or they) are disabled.
The problem is that the data that is displayed is hard to read (regardless
of the font etc used). For example, the project determines the LINK speed of
an ACTIVE NIC and the NIC date in text boxes (along with other info such as
domain related data etc), but is hard to read.

Anyway, the FRAME idea works great.

TX...

--
Wiley
Credo: Let people think you're a fool, rather than open mouth and remove all
doubt!



"Ken Halter" <Ken_Halter@Use_Sparingly_Hotmail.com> wrote in message
news:eJB4HnbBGHA.2320@TK2MSFTNGP11.phx.gbl...
> "Wiley Coyote" <wiley@mentorits.com> wrote in message
> news:O2XXmXaBGHA.1028@TK2MSFTNGP11.phx.gbl...
>
>
> My question is.... how do the users know they're disabled? That "greyed
> out look" has a meaning. Side stepping functionality that's been in place
> since Windows has been around may (or should) be confusing to the users.
> Hopefully, at least the frame has a greyed out caption..... right? <g>
>
> --
> Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
> DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
> Freeware 4 color Gradient Frame? http://www.vbsight.com/GradFrameCTL.htm
>



Wiley Coyote

2006-01-09, 7:16 pm

Labels not an option, as there are over 300 text boxes througout the app and
in some cases (depending on the Security Level of the logged in user), we
need to enter data into text boxes, can't do that with Labels.

Anyway, as I mentioned earlier, Frames fixed it up good.

--
Wiley
Credo: Let people think you're a fool, rather than open mouth and remove all
doubt!



"Ted" <2000@xxxmsn.com> wrote in message
news:uFMts8dBGHA.3408@TK2MSFTNGP12.phx.gbl...
> Then use labels.
>
> "Wiley Coyote" <wiley@mentorits.com> wrote in message
> news:O2XXmXaBGHA.1028@TK2MSFTNGP11.phx.gbl...
>
>



TedF

2006-01-09, 7:16 pm

Use a grid control cells instead of so many text boxes.


"Wiley Coyote" <wiley@mentorits.com> wrote in message
news:uF18vH0BGHA.628@TK2MSFTNGP14.phx.gbl...
> Labels not an option, as there are over 300 text boxes througout the app
> and in some cases (depending on the Security Level of the logged in user),
> we need to enter data into text boxes, can't do that with Labels.
>
> Anyway, as I mentioned earlier, Frames fixed it up good.
>
> --
> Wiley
> Credo: Let people think you're a fool, rather than open mouth and remove
> all doubt!
>
>
>
> "Ted" <2000@xxxmsn.com> wrote in message
> news:uFMts8dBGHA.3408@TK2MSFTNGP12.phx.gbl...
>
>



J French

2006-01-09, 7:16 pm

On Thu, 22 Dec 2005 14:51:56 -0700, "Wiley Coyote"
<wiley@mentorits.com> wrote:

>Labels not an option, as there are over 300 text boxes througout the app and
>in some cases (depending on the Security Level of the logged in user), we
>need to enter data into text boxes, can't do that with Labels.
>
>Anyway, as I mentioned earlier, Frames fixed it up good.


Labels can be pretty handy, for text entry just shove a moving Textbox
over the current Label
David J Mark

2006-01-09, 7:16 pm


"Bob Butler" <tiredofit@nospam.com> wrote in message
news:%23oOzePaBGHA.3936@TK2MSFTNGP12.phx.gbl...
> "Wiley Coyote" <wiley@mentorits.com> wrote in message
> news:OUg6wLaBGHA.2840@TK2MSFTNGP12.phx.gbl
>
> Put a frame on the form, select and cut all of the textboxes, select the
> frame and paste them back onto it and then disable the frame.


So the UI will show enabled textboxes, but the user will be rebuffed anyway?
Not good.

>
> Either that or set the .Locked property to True for all of the textboxes.
> Users will be able to select and copy text but not change them.


There you go.

>
> --
> Reply to the group so all can participate
> VB.Net: "Fool me once..."
>



David J Mark

2006-01-09, 7:16 pm


"Wiley Coyote" <wiley@mentorits.com> wrote in message
news:O2XXmXaBGHA.1028@TK2MSFTNGP11.phx.gbl...
> Thanks dudes. I've tried the Locked Property and it does a great job. The
> problem is that users can copy the contents of the boxes - which is BAD,
> BAD, BAD.


WHY, WHY, WHY.

>
> Anyway, I tried the FRAME concept and it does exactly what I wanted -
> Thanks
> Bob.


FRAME concept? What exactly are you trying to do? I think somebody else
already mentioned this, but it didn't take. Use labels. It doesn't matter
if you have 300 of them. That is a lesson learned for a future project.

>
> GrandNagel, prior to the post I tried that and as mentioned above it
> worked,
> but alas the COPY contents is an issue.
>
>
> Doug, please see above.
>
> Thanks to all
>
> --
> Wiley
> Credo: Let people think you're a fool, rather than open mouth and remove
> all doubt!
>
>
>
> "Wiley Coyote" <wiley@mentorits.com> wrote in message
> news:OUg6wLaBGHA.2840@TK2MSFTNGP12.phx.gbl...
>
>



Rick Rothstein [MVP - Visual Basic]

2006-01-09, 7:16 pm

> Use labels. It doesn't matter if you have 300 of them.

Well, unless a goodly portion of them are in control arrays, it will
matter.<g>

http://support.microsoft.com/defaul...b;EN-US;Q229756

Rick


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com