+ Reply to Thread
Results 1 to 3 of 3

Create a Triangle in a label

  1. #1
    Registered User
    Join Date
    11-27-2007
    Posts
    14

    Create a Triangle in a label

    hi,
    i would like to create a triange in a label that depend on a choosen number.
    the traingle need to be from right to left.
    i have a code that create a traingle but from up to down and i need to change it that it will be from right to left.

    here is the code:

    Private Sub Label1_Click()
    Ans = InputBox("How many Base Rows in the Triangle ?")
    Base = 2 * Ans - 1
    While Base >= 1
    STRG = STRG & Space(SP) + Application.Rept("*", Base) + Space(SP) + Chr(10)
    Base = Base - 2: SP = SP + 1
    Wend
    Label1.Caption = STRG
    End Sub

    any ideas?
    thanks

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Create a Triangle in a label

    like this?
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    11-27-2007
    Posts
    14

    Re: Create a Triangle in a label

    Exactly
    thank you very much

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1