473,789 Members | 2,668 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.backcol or property = color.transpare nt.

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 4809
I don't know about textbox but label does support transparent background and
it also supports multiline text.

Jon
"Phil Diwell" <Ph*********@in valid.btinterne t.com> wrote in message
news:Ob******** ******@TK2MSFTN GP12.phx.gbl...
Hi all.

I am trying to place text over a picturebox. I thought I coul do this by
making the textbox.backcol or property = color.transpare nt.

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******** ******@TK2MSFTN GP10.phx.gbl...
I don't know about textbox but label does support transparent background and it also supports multiline text.

Jon
"Phil Diwell" <Ph*********@in valid.btinterne t.com> wrote in message
news:Ob******** ******@TK2MSFTN GP12.phx.gbl...
Hi all.

I am trying to place text over a picturebox. I thought I coul do this by
making the textbox.backcol or property = color.transpare nt.

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)
programmaticall y, it renders correctly.

Jon
"Phil" <no*****@invali d.btinternet.co m> wrote in message
news:%2******** ********@TK2MSF TNGP10.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******** ******@TK2MSFTN GP10.phx.gbl...
I don't know about textbox but label does support transparent background

and
it also supports multiline text.

Jon
"Phil Diwell" <Ph*********@in valid.btinterne t.com> wrote in message
news:Ob******** ******@TK2MSFTN GP12.phx.gbl...
Hi all.

I am trying to place text over a picturebox. I thought I coul do this by making the textbox.backcol or property = color.transpare nt.

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******** ******@TK2MSFTN GP11.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) programmaticall y, it renders correctly.

Jon
"Phil" <no*****@invali d.btinternet.co m> wrote in message
news:%2******** ********@TK2MSF TNGP10.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******** ******@TK2MSFTN GP10.phx.gbl...
I don't know about textbox but label does support transparent
background and
it also supports multiline text.

Jon
"Phil Diwell" <Ph*********@in valid.btinterne t.com> wrote in message
news:Ob******** ******@TK2MSFTN GP12.phx.gbl...
> Hi all.
>
> I am trying to place text over a picturebox. I thought I coul do
this by > making the textbox.backcol or property = color.transpare nt.
>
> 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
2272
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^>^ LHSquestions = gcnew array<String^> {"question 1","question 2"}; private: static array<String^>^ RHSquestions = gcnew array<String^> {"question 1",
16
9380
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
1528
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 what is happening? Cal
7
4328
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 + Text + empty space + Image + Text + empty space + Image + Text + empty space ... << - scroll to left how can i solve this problem? can i paste images and textelements to one big image? i dont know! can someone help me please?
4
3821
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 picturebox on the map_picture and the new added picturebox should have click event to get the location of it when it is clicked. i have written some code in C# but when clicking the small picturebox it just gets the location of the last added one,...
3
5377
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 Transparent. This so far, works perfect. I now, would like to put another PNG image(an arrow showing positioning on the map) over the last PictureBox. The problem i'm having, the background for this second PictureBox only stays transparent when...
1
2388
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 matter of assigning the value of the Textbox to a Label in the Picturebox. But VB.NET doesn't seem to support a Print method for the Picturebox. How do I output the Picturebox (complete with its contents) to screen or the printer?
5
5381
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 example works. I have tried Show, Enabled, Visible, and even BackColor. Why does a help example not work? and why does Design creation work? Thanks - I hope.
6
7526
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 efficiently, I draw the text directly to the image. It's faster that way. The problem is that right now I have to redraw the original (unwritten-to) bitmap and redraw the text whenever the user moves the text because I haven't figured out how to properly...
0
10200
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10142
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9986
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9021
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5422
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4093
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.