Home All Groups Group Topic Archive Search About

(newbie -VB 2005 EE) TextBox question

Author
16 Sep 2006 9:26 PM
Opa Vito
Hello, so far everything goes well in learning VB, at my age :-)
But I have a problem ...

My program uses a TextBox, readonly, just to display text. Something
that bothers me is that there is always a blinking cursor and many times
the text gets selected too ... I don't need both of them.
How can I avoid that?

As far as I can find out, there are no options to set for this.

Thanks

Vito

Author
16 Sep 2006 10:23 PM
rowe_newsgroups
Have you tried just using a label to display results? You can change
the borderstyle to make it look similar to a textbox (but it's not
perfect).

Thanks,

Seth Rowe

Opa Vito wrote:
Show quoteHide quote
> Hello, so far everything goes well in learning VB, at my age :-)
> But I have a problem ...
>
> My program uses a TextBox, readonly, just to display text. Something
> that bothers me is that there is always a blinking cursor and many times
> the text gets selected too ... I don't need both of them.
> How can I avoid that?
>
> As far as I can find out, there are no options to set for this.
>
> Thanks
>
> Vito
Author
17 Sep 2006 7:24 AM
Opa Vito
rowe_newsgroups schreef:
> Have you tried just using a label to display results? You can change
> the borderstyle to make it look similar to a textbox (but it's not
> perfect).

Seth, thanks for the tip, it works great for me. There's no difference
with a TextBox as far as I can see, so this is a good solution. I only
had to find/replace a few lines of code.

Vito