Making a multi-line Label

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nathan Sokalski

    Making a multi-line Label

    I have a form that is laid out like the following:

    ------------
    | | LABEL CONTROL
    | IMAGE |
    | |
    _________

    I want the Label control to be on multiple lines (I know exactly how many
    and where the breaks will be) but stay contained in a rectangle. If I put BR
    tags in the Text property, it does this in design view, but when I view it
    in IE the second line wraps to below the IMAGE. In other words, I get:

    ------------
    | | LABEL
    | IMAGE | CONTROL
    | |
    _________

    In Visual Studio .NET 2003's Design View, but I get:


    ------------
    | | LABEL
    | IMAGE |
    | |
    _________
    CONTROL

    In Internet Explorer 6.0. I want what Visual Studio .NET 2003's Design View
    shows me. How do I get this? Is there some other control I have to use? I
    realize I could use multiple Labels, but since the content is related, I
    would like to try to avoid that if possible. Thanks.
    --
    Nathan Sokalski
    njsokalski@hotm ail.com
    有声小说网为广大读者提供热门小说在线免费阅读,本站收集的网络文学小说情节跌宕起伏,有声小说网是值得书友们收藏的小说在线阅读网。



  • Rai Yawar Ijaz

    #2
    Re: Making a multi-line Label

    Hi !
    Okiee! i guess u havn't used tables in ure code/html. ure image
    and label should be in two different columns and if it still don't get solve
    then make put image and label in two diff tables. hopefully this will solve
    ure problem

    with regards
    yawar
    "Nathan Sokalski" <njsokalski@hot mail.com> wrote in message
    news:OQjRifNkFH A.3316@TK2MSFTN GP14.phx.gbl...[color=blue]
    > I have a form that is laid out like the following:
    >
    > ------------
    > | | LABEL CONTROL
    > | IMAGE |
    > | |
    > _________
    >
    > I want the Label control to be on multiple lines (I know exactly how many
    > and where the breaks will be) but stay contained in a rectangle. If I put[/color]
    BR[color=blue]
    > tags in the Text property, it does this in design view, but when I view it
    > in IE the second line wraps to below the IMAGE. In other words, I get:
    >
    > ------------
    > | | LABEL
    > | IMAGE | CONTROL
    > | |
    > _________
    >
    > In Visual Studio .NET 2003's Design View, but I get:
    >
    >
    > ------------
    > | | LABEL
    > | IMAGE |
    > | |
    > _________
    > CONTROL
    >
    > In Internet Explorer 6.0. I want what Visual Studio .NET 2003's Design[/color]
    View[color=blue]
    > shows me. How do I get this? Is there some other control I have to use? I
    > realize I could use multiple Labels, but since the content is related, I
    > would like to try to avoid that if possible. Thanks.
    > --
    > Nathan Sokalski
    > njsokalski@hotm ail.com
    > http://www.nathansokalski.com/
    >
    >[/color]


    Comment

    • Peter Rilling

      #3
      Re: Making a multi-line Label

      I would use tables to control the layout.

      "Nathan Sokalski" <njsokalski@hot mail.com> wrote in message
      news:OQjRifNkFH A.3316@TK2MSFTN GP14.phx.gbl...[color=blue]
      > I have a form that is laid out like the following:
      >
      > ------------
      > | | LABEL CONTROL
      > | IMAGE |
      > | |
      > _________
      >
      > I want the Label control to be on multiple lines (I know exactly how many
      > and where the breaks will be) but stay contained in a rectangle. If I put[/color]
      BR[color=blue]
      > tags in the Text property, it does this in design view, but when I view it
      > in IE the second line wraps to below the IMAGE. In other words, I get:
      >
      > ------------
      > | | LABEL
      > | IMAGE | CONTROL
      > | |
      > _________
      >
      > In Visual Studio .NET 2003's Design View, but I get:
      >
      >
      > ------------
      > | | LABEL
      > | IMAGE |
      > | |
      > _________
      > CONTROL
      >
      > In Internet Explorer 6.0. I want what Visual Studio .NET 2003's Design[/color]
      View[color=blue]
      > shows me. How do I get this? Is there some other control I have to use? I
      > realize I could use multiple Labels, but since the content is related, I
      > would like to try to avoid that if possible. Thanks.
      > --
      > Nathan Sokalski
      > njsokalski@hotm ail.com
      > http://www.nathansokalski.com/
      >
      >[/color]


      Comment

      Working...