469,325 Members | 1,388 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,325 developers. It's quick & easy.

How to place text over a picturebox

Hi all.

I am trying to place text over a picturebox. I thought I coul do this by
making the textbox.backcolor property = color.transparent.

However this doesn't work (textbox doesn't support transparent backcolor)
and so I am wondering if anyone knows how I can do this.

I need to be able to put multiple lines of text over the picturebox, so
using labels won't do it.

Any help would be appreciated.

Phil
Nov 15 '05 #1
4 4614
I don't know about textbox but label does support transparent background and
it also supports multiline text.

Jon
"Phil Diwell" <Ph*********@invalid.btinternet.com> wrote in message
news:Ob**************@TK2MSFTNGP12.phx.gbl...
Hi all.

I am trying to place text over a picturebox. I thought I coul do this by
making the textbox.backcolor property = color.transparent.

However this doesn't work (textbox doesn't support transparent backcolor)
and so I am wondering if anyone knows how I can do this.

I need to be able to put multiple lines of text over the picturebox, so
using labels won't do it.

Any help would be appreciated.

Phil

Nov 15 '05 #2
Hi, thanks for replying,

I just had a look and cannot find a multiline property for label, are you
sure there is one?
Maybe I'm missing something really obvious, but...

Phil

"Jon Davis" <jo*@REMOVE.ME.PLEASE.jondavis.net> wrote in message
news:ed**************@TK2MSFTNGP10.phx.gbl...
I don't know about textbox but label does support transparent background and it also supports multiline text.

Jon
"Phil Diwell" <Ph*********@invalid.btinternet.com> wrote in message
news:Ob**************@TK2MSFTNGP12.phx.gbl...
Hi all.

I am trying to place text over a picturebox. I thought I coul do this by
making the textbox.backcolor property = color.transparent.

However this doesn't work (textbox doesn't support transparent backcolor) and so I am wondering if anyone knows how I can do this.

I need to be able to put multiple lines of text over the picturebox, so
using labels won't do it.

Any help would be appreciated.

Phil


Nov 15 '05 #3
It's multiline by default. The property editor doesn't support multiline
text, but if you pass a multiline string (containing "\r\n" per line break)
programmatically, it renders correctly.

Jon
"Phil" <no*****@invalid.btinternet.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi, thanks for replying,

I just had a look and cannot find a multiline property for label, are you
sure there is one?
Maybe I'm missing something really obvious, but...

Phil

"Jon Davis" <jo*@REMOVE.ME.PLEASE.jondavis.net> wrote in message
news:ed**************@TK2MSFTNGP10.phx.gbl...
I don't know about textbox but label does support transparent background

and
it also supports multiline text.

Jon
"Phil Diwell" <Ph*********@invalid.btinternet.com> wrote in message
news:Ob**************@TK2MSFTNGP12.phx.gbl...
Hi all.

I am trying to place text over a picturebox. I thought I coul do this by making the textbox.backcolor property = color.transparent.

However this doesn't work (textbox doesn't support transparent backcolor) and so I am wondering if anyone knows how I can do this.

I need to be able to put multiple lines of text over the picturebox, so using labels won't do it.

Any help would be appreciated.

Phil



Nov 15 '05 #4
Ah !!

Just tried it - you're right. I didn't know that (obviously)

I guess that solve my problem - thanks.

Phil

"Jon Davis" <jo*@REMOVE.ME.PLEASE.jondavis.net> wrote in message
news:eU**************@TK2MSFTNGP11.phx.gbl...
It's multiline by default. The property editor doesn't support multiline
text, but if you pass a multiline string (containing "\r\n" per line break) programmatically, it renders correctly.

Jon
"Phil" <no*****@invalid.btinternet.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi, thanks for replying,

I just had a look and cannot find a multiline property for label, are you
sure there is one?
Maybe I'm missing something really obvious, but...

Phil

"Jon Davis" <jo*@REMOVE.ME.PLEASE.jondavis.net> wrote in message
news:ed**************@TK2MSFTNGP10.phx.gbl...
I don't know about textbox but label does support transparent
background and
it also supports multiline text.

Jon
"Phil Diwell" <Ph*********@invalid.btinternet.com> wrote in message
news:Ob**************@TK2MSFTNGP12.phx.gbl...
> Hi all.
>
> I am trying to place text over a picturebox. I thought I coul do
this by > making the textbox.backcolor property = color.transparent.
>
> However this doesn't work (textbox doesn't support transparent

backcolor)
> and so I am wondering if anyone knows how I can do this.
>
> I need to be able to put multiple lines of text over the picturebox, so > using labels won't do it.
>
> Any help would be appreciated.
>
> Phil
>
>



Nov 15 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Geoff Cox | last post: by
7 posts views Thread by Yavuz Bogazci | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.