Results 1 to 7 of 7

Thread: [RESOLVED] Making shapes in picture boxes

Threaded View

  1. #2
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Making shapes in picture boxes

    Yes it is possible. Use the Picture1.Line to draw the shape

    Code:
    Private Sub DrawSquare()
        '~~> This will draw a square
        '~~> You can replace the hardcoded values
        '~~> with the textboxes values
        Picture1.Line (2500, 2200)-(3000, 2200), vbBlue
        Picture1.Line (3000, 2200)-(3000, 1800), vbBlue
        Picture1.Line (3000, 1800)-(2500, 1800), vbBlue
        Picture1.Line (2500, 1800)-(2500, 2200), vbBlue
    End Sub
    Edit:

    Similarly to draw a circle, you can use

    Code:
    Picture1.Circle (2050, 2200), 1000
    Last edited by Siddharth Rout; Mar 31st, 2010 at 01:46 PM.
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

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