How to place text over a picturebox

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Phil Diwell

    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


  • Jon Davis

    #2
    Re: How to place text over a picturebox

    I don't know about textbox but label does support transparent background and
    it also supports multiline text.

    Jon


    "Phil Diwell" <Phil.Diwell@in valid.btinterne t.com> wrote in message
    news:ObkrTVWqDH A.1948@TK2MSFTN GP12.phx.gbl...[color=blue]
    > 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
    >
    >[/color]


    Comment

    • Phil

      #3
      Re: How to place text over a picturebox

      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" <jon@REMOVE.ME. PLEASE.jondavis .net> wrote in message
      news:ed1EAbWqDH A.2820@TK2MSFTN GP10.phx.gbl...[color=blue]
      > I don't know about textbox but label does support transparent background[/color]
      and[color=blue]
      > it also supports multiline text.
      >
      > Jon
      >
      >
      > "Phil Diwell" <Phil.Diwell@in valid.btinterne t.com> wrote in message
      > news:ObkrTVWqDH A.1948@TK2MSFTN GP12.phx.gbl...[color=green]
      > > 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[/color][/color]
      backcolor)[color=blue][color=green]
      > > 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
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Jon Davis

        #4
        Re: How to place text over a picturebox

        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.spam@invali d.btinternet.co m> wrote in message
        news:%23bG97uWq DHA.2416@TK2MSF TNGP10.phx.gbl. ..[color=blue]
        > 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" <jon@REMOVE.ME. PLEASE.jondavis .net> wrote in message
        > news:ed1EAbWqDH A.2820@TK2MSFTN GP10.phx.gbl...[color=green]
        > > I don't know about textbox but label does support transparent background[/color]
        > and[color=green]
        > > it also supports multiline text.
        > >
        > > Jon
        > >
        > >
        > > "Phil Diwell" <Phil.Diwell@in valid.btinterne t.com> wrote in message
        > > news:ObkrTVWqDH A.1948@TK2MSFTN GP12.phx.gbl...[color=darkred]
        > > > Hi all.
        > > >
        > > > I am trying to place text over a picturebox. I thought I coul do this[/color][/color][/color]
        by[color=blue][color=green][color=darkred]
        > > > making the textbox.backcol or property = color.transpare nt.
        > > >
        > > > However this doesn't work (textbox doesn't support transparent[/color][/color]
        > backcolor)[color=green][color=darkred]
        > > > 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,[/color][/color][/color]
        so[color=blue][color=green][color=darkred]
        > > > using labels won't do it.
        > > >
        > > > Any help would be appreciated.
        > > >
        > > > Phil
        > > >
        > > >[/color]
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Phil

          #5
          Re: How to place text over a picturebox

          Ah !!

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

          I guess that solve my problem - thanks.

          Phil

          "Jon Davis" <jon@REMOVE.ME. PLEASE.jondavis .net> wrote in message
          news:eUKW1$WqDH A.2064@TK2MSFTN GP11.phx.gbl...[color=blue]
          > 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[/color]
          break)[color=blue]
          > programmaticall y, it renders correctly.
          >
          > Jon
          >
          >
          > "Phil" <no.spam@invali d.btinternet.co m> wrote in message
          > news:%23bG97uWq DHA.2416@TK2MSF TNGP10.phx.gbl. ..[color=green]
          > > Hi, thanks for replying,
          > >
          > > I just had a look and cannot find a multiline property for label, are[/color][/color]
          you[color=blue][color=green]
          > > sure there is one?
          > > Maybe I'm missing something really obvious, but...
          > >
          > > Phil
          > >
          > > "Jon Davis" <jon@REMOVE.ME. PLEASE.jondavis .net> wrote in message
          > > news:ed1EAbWqDH A.2820@TK2MSFTN GP10.phx.gbl...[color=darkred]
          > > > I don't know about textbox but label does support transparent[/color][/color][/color]
          background[color=blue][color=green]
          > > and[color=darkred]
          > > > it also supports multiline text.
          > > >
          > > > Jon
          > > >
          > > >
          > > > "Phil Diwell" <Phil.Diwell@in valid.btinterne t.com> wrote in message
          > > > news:ObkrTVWqDH A.1948@TK2MSFTN GP12.phx.gbl...
          > > > > Hi all.
          > > > >
          > > > > I am trying to place text over a picturebox. I thought I coul do[/color][/color][/color]
          this[color=blue]
          > by[color=green][color=darkred]
          > > > > making the textbox.backcol or property = color.transpare nt.
          > > > >
          > > > > However this doesn't work (textbox doesn't support transparent[/color]
          > > backcolor)[color=darkred]
          > > > > 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,[/color][/color]
          > so[color=green][color=darkred]
          > > > > using labels won't do it.
          > > > >
          > > > > Any help would be appreciated.
          > > > >
          > > > > Phil
          > > > >
          > > > >
          > > >
          > > >[/color]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          Working...