473,394 Members | 1,694 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 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 4776
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 Express Beta 2... private: static array<String^>^...
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: Private Type Rect Left As Long
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 the (40, 100) area. Got any insight into...
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 should look like this: scroll << - ... Image +...
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 customer_button, my wish is to add a new small...
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 transparency in it. The .BackColor property is set to...
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 Picturebox to the screen. Ok, it is a simple...
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 PictureBox" and create it in Design mode - the...
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 around on the image, but to render them...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.