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. C#
  4. Non rectangular windows forms

Non rectangular windows forms

Scheduled Pinned Locked Moved C#
htmlwinformscomtutorialquestion
6 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.
  • A Offline
    A Offline
    Amila Paththamperuma
    wrote on last edited by
    #1

    Hi, I'm trying to create a windows application which has non rectangular shapes. (Some thing like Media player). There is an article in MSDN, but they mentioned that there are some issues. I'm also facing them. So please advice me on how to do this? MSDN link :http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskCreatingNon-StandardShapedWindowsForms.asp My mail address is amilacp@gmail.com Thanks, Amila Amila

    A T 2 Replies Last reply
    0
    • A Amila Paththamperuma

      Hi, I'm trying to create a windows application which has non rectangular shapes. (Some thing like Media player). There is an article in MSDN, but they mentioned that there are some issues. I'm also facing them. So please advice me on how to do this? MSDN link :http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskCreatingNon-StandardShapedWindowsForms.asp My mail address is amilacp@gmail.com Thanks, Amila Amila

      A Offline
      A Offline
      AB7771
      wrote on last edited by
      #2

      To achieve this u have first create a image which contains of the shape u want to give to ur application, and set the outer region with some color (Black), now set the background image of the form to this image, set the transparency key to the color that u have set to the image's outer region i.e. Black, Change the formborderstyle to None, this will work for u. Regards, Pramod

      A 1 Reply Last reply
      0
      • A AB7771

        To achieve this u have first create a image which contains of the shape u want to give to ur application, and set the outer region with some color (Black), now set the background image of the form to this image, set the transparency key to the color that u have set to the image's outer region i.e. Black, Change the formborderstyle to None, this will work for u. Regards, Pramod

        A Offline
        A Offline
        Amila Paththamperuma
        wrote on last edited by
        #3

        There is an article in MSDN, but they mentioned that there are some issues. I'm also facing them. So please advice me on how to do this? MSDN link :http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskCreatingNon-StandardShapedWindowsForms.asp From MSDN Note Monitors set to a color depth of greater than 24-bit can have display problems with certain parts of the form not being transparent, despite setting of the TransparencyKey property. To avoid this problem, ensure that the monitor's color depth is set to less than 24-bit in the Display control panel. When developing applications that feature this transparency, keep in mind that you will have to make your users aware of this issue. This is the issue i'm facing. Please advice. Amila

        A 1 Reply Last reply
        0
        • A Amila Paththamperuma

          There is an article in MSDN, but they mentioned that there are some issues. I'm also facing them. So please advice me on how to do this? MSDN link :http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskCreatingNon-StandardShapedWindowsForms.asp From MSDN Note Monitors set to a color depth of greater than 24-bit can have display problems with certain parts of the form not being transparent, despite setting of the TransparencyKey property. To avoid this problem, ensure that the monitor's color depth is set to less than 24-bit in the Display control panel. When developing applications that feature this transparency, keep in mind that you will have to make your users aware of this issue. This is the issue i'm facing. Please advice. Amila

          A Offline
          A Offline
          AB7771
          wrote on last edited by
          #4

          The u can just change the Color depth of ur monitor and them try it. Regards, Pramod

          1 Reply Last reply
          0
          • A Amila Paththamperuma

            Hi, I'm trying to create a windows application which has non rectangular shapes. (Some thing like Media player). There is an article in MSDN, but they mentioned that there are some issues. I'm also facing them. So please advice me on how to do this? MSDN link :http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskCreatingNon-StandardShapedWindowsForms.asp My mail address is amilacp@gmail.com Thanks, Amila Amila

            T Offline
            T Offline
            triton630
            wrote on last edited by
            #5

            Hi Amila, I read the article you're reading and faced similar problems. I found this article on code project. The author used a technique that gets around this issue. http://www.codeproject.com/dialog/taskbarnotifier.asp[^] Try it out.

            T 1 Reply Last reply
            0
            • T triton630

              Hi Amila, I read the article you're reading and faced similar problems. I found this article on code project. The author used a technique that gets around this issue. http://www.codeproject.com/dialog/taskbarnotifier.asp[^] Try it out.

              T Offline
              T Offline
              triton630
              wrote on last edited by
              #6

              Oops....pasted the wrong url. Try this one. http://www.codeproject.com/cs/miscctrl/taskbarnotifier.asp[^]

              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