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. image with shadow in transparented form

image with shadow in transparented form

Scheduled Pinned Locked Moved C#
question
7 Posts 4 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.
  • H Offline
    H Offline
    hamid_m
    wrote on last edited by
    #1

    how can i have a transparent form with image that have shadow? i want to have a startup form just show image with shadow

    P L 2 Replies Last reply
    0
    • H hamid_m

      how can i have a transparent form with image that have shadow? i want to have a startup form just show image with shadow

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      Maybe play around with the Opacity property?

      "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

      H 1 Reply Last reply
      0
      • P Paul Conrad

        Maybe play around with the Opacity property?

        "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

        H Offline
        H Offline
        hamid_m
        wrote on last edited by
        #3

        It dose not work. Opacity hide all object. but i want to hide form and show an image with shadow

        P 1 Reply Last reply
        0
        • H hamid_m

          It dose not work. Opacity hide all object. but i want to hide form and show an image with shadow

          P Offline
          P Offline
          Paul Conrad
          wrote on last edited by
          #4

          It was just a quick thought...

          "I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon

          1 Reply Last reply
          0
          • H hamid_m

            how can i have a transparent form with image that have shadow? i want to have a startup form just show image with shadow

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            If you set the TransparencyKey to the SystemColors.Control, and you make your form borderless, you have a nice splash window. But... the shadow is something you can't do easily. If you tried to embed the shadow in the image, you will see the background behind it. Perhaps you can use WPF for that. Quick search: http://www.codeproject.com/KB/WPF/WPFImageEffects.aspx[^]

            H 1 Reply Last reply
            0
            • L Lost User

              If you set the TransparencyKey to the SystemColors.Control, and you make your form borderless, you have a nice splash window. But... the shadow is something you can't do easily. If you tried to embed the shadow in the image, you will see the background behind it. Perhaps you can use WPF for that. Quick search: http://www.codeproject.com/KB/WPF/WPFImageEffects.aspx[^]

              H Offline
              H Offline
              hamid_m
              wrote on last edited by
              #6

              i knew it. but i can't use wpf for this project

              S 1 Reply Last reply
              0
              • H hamid_m

                i knew it. but i can't use wpf for this project

                S Offline
                S Offline
                shan shirsat
                wrote on last edited by
                #7

                shadow u can do with css property.

                box-shadow //

                It may help u in better way

                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