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. Custom Radio button / Check box

Custom Radio button / Check box

Scheduled Pinned Locked Moved C#
tutorialquestion
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.
  • K Offline
    K Offline
    Krugger404
    wrote on last edited by
    #1

    Hi, I need to add some custom tweaks to the regular windows radio button and check box. Basically, i need to tamper with the colours throughout the different events (roll over, disabled,selected...) and cater for the size of the control as well as the distance between the control and its text. I am inheriting my control from the usual System.Windows.Forms.RadioButtton/CheckBox. Can you please give me a tutorial or example that i can follow to achieve this? Thanks beforehand. :doh: Yours truly, Krugger

    G 1 Reply Last reply
    0
    • K Krugger404

      Hi, I need to add some custom tweaks to the regular windows radio button and check box. Basically, i need to tamper with the colours throughout the different events (roll over, disabled,selected...) and cater for the size of the control as well as the distance between the control and its text. I am inheriting my control from the usual System.Windows.Forms.RadioButtton/CheckBox. Can you please give me a tutorial or example that i can follow to achieve this? Thanks beforehand. :doh: Yours truly, Krugger

      G Offline
      G Offline
      Giorgi Dalakishvili
      wrote on last edited by
      #2

      You should write your own controls which inherit from the controls you mentioned and extend their functionality. Perhaps you will need to override OnPaint event

      #region signature my articles #endregion

      K 1 Reply Last reply
      0
      • G Giorgi Dalakishvili

        You should write your own controls which inherit from the controls you mentioned and extend their functionality. Perhaps you will need to override OnPaint event

        #region signature my articles #endregion

        K Offline
        K Offline
        Krugger404
        wrote on last edited by
        #3

        Yes, this is indeed what i need to do. The thing is that i am totally new to Windows controls and do not know how to work this around. Can you plz give me a tutorial or an example i can follow? Thanks

        G R 2 Replies Last reply
        0
        • K Krugger404

          Yes, this is indeed what i need to do. The thing is that i am totally new to Windows controls and do not know how to work this around. Can you plz give me a tutorial or an example i can follow? Thanks

          G Offline
          G Offline
          Giorgi Dalakishvili
          wrote on last edited by
          #4

          Here you go: http://msdn2.microsoft.com/en-us/library/7h62478z(VS.80).aspx[^] http://www.codeproject.com/vb/net/checkbox_v2.asp[^]

          #region signature my articles #endregion

          1 Reply Last reply
          0
          • K Krugger404

            Yes, this is indeed what i need to do. The thing is that i am totally new to Windows controls and do not know how to work this around. Can you plz give me a tutorial or an example i can follow? Thanks

            R Offline
            R Offline
            Rocky
            wrote on last edited by
            #5

            talking abt tutorial... have a look at this. use thi URL in MSDN ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_mclictl/html/f88481a8-c746-4a36-9479-374ce5f2e91f.htm

            Rocky You can't climb up a ladder with your hands in your pockets.

            K 1 Reply Last reply
            0
            • R Rocky

              talking abt tutorial... have a look at this. use thi URL in MSDN ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_mclictl/html/f88481a8-c746-4a36-9479-374ce5f2e91f.htm

              Rocky You can't climb up a ladder with your hands in your pockets.

              K Offline
              K Offline
              Krugger404
              wrote on last edited by
              #6

              Thanks guys. I will have a look at it ASAP.

              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