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. Display a image on a Button with button.FlatStyle = FlatStyle.System

Display a image on a Button with button.FlatStyle = FlatStyle.System

Scheduled Pinned Locked Moved C#
10 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.
  • M Offline
    M Offline
    miah alom
    wrote on last edited by
    #1

    Is there a way to display a image on a Button with button.FlatStyle = FlatStyle.System. Currently I have applied XP theme to the controls.

    X A 2 Replies Last reply
    0
    • M miah alom

      Is there a way to display a image on a Button with button.FlatStyle = FlatStyle.System. Currently I have applied XP theme to the controls.

      X Offline
      X Offline
      XRaheemX
      wrote on last edited by
      #2

      Have you thought about just using a PictureBox control as your button? Or are you wanting the "effect" of a "downward click" when the mouse is clicked?

      M 1 Reply Last reply
      0
      • X XRaheemX

        Have you thought about just using a PictureBox control as your button? Or are you wanting the "effect" of a "downward click" when the mouse is clicked?

        M Offline
        M Offline
        miah alom
        wrote on last edited by
        #3

        Yes. I need "downward click" "effect". When I do button.FlatStyle = FlatStyle.Standard, everything works fine but the look and feel of the button is like windows 2000 button.

        X 1 Reply Last reply
        0
        • M miah alom

          Yes. I need "downward click" "effect". When I do button.FlatStyle = FlatStyle.Standard, everything works fine but the look and feel of the button is like windows 2000 button.

          X Offline
          X Offline
          XRaheemX
          wrote on last edited by
          #4

          Then I'm going to go with making a custom control that has the style + effect + picture.

          M 1 Reply Last reply
          0
          • M miah alom

            Is there a way to display a image on a Button with button.FlatStyle = FlatStyle.System. Currently I have applied XP theme to the controls.

            A Offline
            A Offline
            Andy Moore
            wrote on last edited by
            #5

            No. You have to implement this yourself. Check out this link. http://www.codeproject.com/cs/miscctrl/MgXpImageButton.asp I implemented something similar in a project. I hope this helps. Human beings were not meant to sit in little cubicles staring at computer screens all day, filling out useless forms and listening to eight different bosses drone on about about mission statements. -- Peter Gibbons

            M 1 Reply Last reply
            0
            • A Andy Moore

              No. You have to implement this yourself. Check out this link. http://www.codeproject.com/cs/miscctrl/MgXpImageButton.asp I implemented something similar in a project. I hope this helps. Human beings were not meant to sit in little cubicles staring at computer screens all day, filling out useless forms and listening to eight different bosses drone on about about mission statements. -- Peter Gibbons

              M Offline
              M Offline
              miah alom
              wrote on last edited by
              #6

              Bingo. This is exactly what I was looking for. Thanks.

              1 Reply Last reply
              0
              • X XRaheemX

                Then I'm going to go with making a custom control that has the style + effect + picture.

                M Offline
                M Offline
                miah alom
                wrote on last edited by
                #7

                Thanks for your time. Please see the next reply for an article on the same.

                X 1 Reply Last reply
                0
                • M miah alom

                  Thanks for your time. Please see the next reply for an article on the same.

                  X Offline
                  X Offline
                  XRaheemX
                  wrote on last edited by
                  #8

                  Heh, exactly what I posted except I didn't have an example...

                  M 1 Reply Last reply
                  0
                  • X XRaheemX

                    Heh, exactly what I posted except I didn't have an example...

                    M Offline
                    M Offline
                    miah alom
                    wrote on last edited by
                    #9

                    Yes you did. Thats why I pointed you to the article. It might be useful for you also. Anyway, thanks for your help.

                    X 1 Reply Last reply
                    0
                    • M miah alom

                      Yes you did. Thats why I pointed you to the article. It might be useful for you also. Anyway, thanks for your help.

                      X Offline
                      X Offline
                      XRaheemX
                      wrote on last edited by
                      #10

                      Ohhh, ok.. well thanks for the info then and I'm happy to help (even a little) :)

                      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