472,353 Members | 1,360 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

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 4715
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Geoff Cox | last post by:
Hello, I am trying to get a grip on where to place the initialization of two arrays in the code below which was created using Visual C++ 2005...
16
by: Neal | last post by:
Hi, I saw the VB6 Code to do this at this link: http://www.dotnet247.com/247reference/msgs/11/56581.aspx The VB6 Code reads as follows: ...
3
by: active | last post by:
I draw text in a bitmap and then draw the bitmap on a picturebox and get text that is not all displayed the same. Note the different text style in...
7
by: Yavuz Bogazci | last post by:
i have the following problem: my customer wants to show some informations in a WinForm. He has Images and Textelements with are connected. It...
4
by: munibe | last post by:
Hi, i have a problem about picturebox control. if you may help me, i will be so happy. i have a picturebox named pic_map, and i added a button named...
3
by: kirk | last post by:
I have a form with a PictureBox control on it. The .Image property is set to a PNG file(which shows the picture of the US map) with some...
1
by: VICTOR DIACONO | last post by:
I have the following problem. I am trying to print the contents of a number of Textboxes into Labels on a Picturebox. Then I wish to output the...
5
by: AWW | last post by:
XP VB 2005 running an example from help that creates a picturebox in code - the picturebox is not created. If I comment out the "Dim Box as New...
6
by: bradyounie | last post by:
I'm writing a program that displays a user-supplied Bitmap and then writes text fields to it. These "text fields" are things that the user can move...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.