Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. About Shaped forms in vb.NET

About Shaped forms in vb.NET

Scheduled Pinned Locked Moved Visual Basic
csharpcomtutorialquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Romein
    wrote on last edited by
    #1

    I made some shaped forms... but I have never found out How to create somthing like this shape, a recangle with rounded corners: Look at the white area.. Click Here :~ any ideas? I used this page

    J 1 Reply Last reply
    0
    • R Romein

      I made some shaped forms... but I have never found out How to create somthing like this shape, a recangle with rounded corners: Look at the white area.. Click Here :~ any ideas? I used this page

      J Offline
      J Offline
      Johannes Hansen
      wrote on last edited by
      #2

      This code will generate a rectangle(200x200) with rounded corners... Dim Path As New GraphicsPath Path.AddArc(0, 0, 40, 40, 180, 90) Path.AddArc(160, 0, 40, 40, -90, 90) Path.AddArc(160, 160, 40, 40, 0, 90) Path.AddArc(0, 160, 40, 40, 90, 90) Me.Region = New Region(regionPath)

      Keep experimenting! - Johannes Hansen

      F 1 Reply Last reply
      0
      • J Johannes Hansen

        This code will generate a rectangle(200x200) with rounded corners... Dim Path As New GraphicsPath Path.AddArc(0, 0, 40, 40, 180, 90) Path.AddArc(160, 0, 40, 40, -90, 90) Path.AddArc(160, 160, 40, 40, 0, 90) Path.AddArc(0, 160, 40, 40, 90, 90) Me.Region = New Region(regionPath)

        Keep experimenting! - Johannes Hansen

        F Offline
        F Offline
        fume
        wrote on last edited by
        #3

        what's GraphicsPath? what's regionPath? ... .. here we go again.

        R J 2 Replies Last reply
        0
        • F fume

          what's GraphicsPath? what's regionPath? ... .. here we go again.

          R Offline
          R Offline
          Romein
          wrote on last edited by
          #4

          Thank you very much!!! No way I could find it by my self :)

          1 Reply Last reply
          0
          • F fume

            what's GraphicsPath? what's regionPath? ... .. here we go again.

            J Offline
            J Offline
            Johannes Hansen
            wrote on last edited by
            #5

            Whoops regionPath is actually the variable Path of the type GraphicsPath... Sorry! ;)

            Keep experimenting! - Johannes Hansen

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups