CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: vertical text?

  1. #1
    Join Date
    Oct 2001
    Posts
    2

    vertical text?

    how can I put text in a label or other control that the letters will be verticals?

    like:
    "
    A
    B
    C
    "

    10x,
    yonatan


  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: vertical text?

    Private Sub Command1_Click()
    Dim i As Integer
    Dim MyStr As String
    Static Vert As Boolean

    Label1.AutoSize = True
    If Vert = False Then
    For i = 1 To Len(Label1)
    If i < Len(Label1) Then
    MyStr = MyStr + Mid$(Label1, i, 1) & vbCrLf
    Else
    MyStr = MyStr + Mid$(Label1, i, 1)
    End If
    Next
    Label1 = MyStr
    Vert = True
    Else
    For i = 1 To Len(Label1) Step 3
    MyStr = MyStr + Mid$(Label1, i, 1)
    Next
    Label1 = MyStr
    Vert = False
    End If
    End Sub


    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  3. #3
    Join Date
    Jul 2001
    Location
    Mumbai,India
    Posts
    382

    Re: vertical text?

    Label1.caption = "A" & vbcrlf & "B" & vbcrlf & "C"

    Regards,
    The Beret.

    Regards,
    The Beret.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured