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. radio button vb.net 1.1

radio button vb.net 1.1

Scheduled Pinned Locked Moved Visual Basic
questioncsharp
15 Posts 5 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.
  • T Taylor

    add a class to your project which inherites radiobutton add this code to your class .to disable the event do not write anything in the subroutine.

    Protected Overrides Sub OnEnabledChanged(ByVal e As System.EventArgs)

    End Sub
    

    -- modified at 15:42 Friday 14th September, 2007

    A.E.K

    D Offline
    D Offline
    Dave Kreskowiak
    wrote on last edited by
    #4

    You might want to review your post and clean it up a bit. Noone can read it unless they reply to it.

    A guide to posting questions on CodeProject[^]
    Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
         2006, 2007

    T 1 Reply Last reply
    0
    • D Dave Kreskowiak

      mshytech wrote:

      have a radio button that is disabled on form load, why is the font color(forecolor) different when disabled

      Because it's disabled. This is standard Windows functionality.

      mshytech wrote:

      and how do I change it?

      You don't. There is no property to change the disabled foreground color. You can simulate the "normal" colors with a disabled RadioButton by leaving it enabled, then handling the Click event of the RB and resetting it's Checked property to the opposite of what it is:

      RadioButton1.Checked = Not RadioButton1.Checked
      

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      M Offline
      M Offline
      mshytech
      wrote on last edited by
      #5

      Great, that works! What ever happened to control arrays? :(

      1 Reply Last reply
      0
      • D Dave Kreskowiak

        You might want to review your post and clean it up a bit. Noone can read it unless they reply to it.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

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

        what are you talking about Dave?

        A.E.K

        D 1 Reply Last reply
        0
        • T Taylor

          what are you talking about Dave?

          A.E.K

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #7

          Originally, your post just had the peach colored bar, with no code in it.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          1 Reply Last reply
          0
          • M mshytech

            I have a radio button that is disabled on form load, why is the font color(forecolor) different when disabled and how do I change it? Thanks. :wtf: mshytech

            R Offline
            R Offline
            rohitsrivastava
            wrote on last edited by
            #8

            hi first u write the code and in load form for line u disable radio button not first ok your problem is sol ve

            D 1 Reply Last reply
            0
            • R rohitsrivastava

              hi first u write the code and in load form for line u disable radio button not first ok your problem is sol ve

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #9

              You might want to rethink that post. He wants the control disabled, but not showing the color scheme that comes with it. Setting the Enabled property to False at any time will change the colors to something he doesn't want.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007

              P M 3 Replies Last reply
              0
              • D Dave Kreskowiak

                You might want to rethink that post. He wants the control disabled, but not showing the color scheme that comes with it. Setting the Enabled property to False at any time will change the colors to something he doesn't want.

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007

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

                Dave Kreskowiak wrote:

                You might want to rethink that post.

                Boy, someone really missed the point of the original post :laugh:

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

                D 1 Reply Last reply
                0
                • P Paul Conrad

                  Dave Kreskowiak wrote:

                  You might want to rethink that post.

                  Boy, someone really missed the point of the original post :laugh:

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

                  D Offline
                  D Offline
                  Dave Kreskowiak
                  wrote on last edited by
                  #11

                  Yeah, I was standing behind the guy when he fired, and still had to duck as the bullet wizzed by!

                  A guide to posting questions on CodeProject[^]
                  Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                       2006, 2007

                  1 Reply Last reply
                  0
                  • D Dave Kreskowiak

                    You might want to rethink that post. He wants the control disabled, but not showing the color scheme that comes with it. Setting the Enabled property to False at any time will change the colors to something he doesn't want.

                    A guide to posting questions on CodeProject[^]
                    Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                         2006, 2007

                    M Offline
                    M Offline
                    mshytech
                    wrote on last edited by
                    #12

                    You are absolutely right. She doesn't want that. ;)

                    1 Reply Last reply
                    0
                    • D Dave Kreskowiak

                      You might want to rethink that post. He wants the control disabled, but not showing the color scheme that comes with it. Setting the Enabled property to False at any time will change the colors to something he doesn't want.

                      A guide to posting questions on CodeProject[^]
                      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                           2006, 2007

                      M Offline
                      M Offline
                      mshytech
                      wrote on last edited by
                      #13

                      FYI http://pages.videotron.com/emoreau/[^] Under 2005 articles - Colors of disabled controls.

                      D 1 Reply Last reply
                      0
                      • M mshytech

                        FYI http://pages.videotron.com/emoreau/[^] Under 2005 articles - Colors of disabled controls.

                        D Offline
                        D Offline
                        Dave Kreskowiak
                        wrote on last edited by
                        #14

                        OK, so? I gave him the quick and dirty method. From his original post, it didn't sound he had much knowledge, actually none, of the intricacies of creating his own controls to do this.

                        A guide to posting questions on CodeProject[^]
                        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                             2006, 2007

                        M 1 Reply Last reply
                        0
                        • D Dave Kreskowiak

                          OK, so? I gave him the quick and dirty method. From his original post, it didn't sound he had much knowledge, actually none, of the intricacies of creating his own controls to do this.

                          A guide to posting questions on CodeProject[^]
                          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                               2006, 2007

                          M Offline
                          M Offline
                          mshytech
                          wrote on last edited by
                          #15

                          The Original post was from me. And yes, I don't have much knowledge with creating vb.net 1.1 controls, but it doesn't mean I can't figure it out by searching the web for information from nice people like you. :) I thought I would post a link to some more detailed info for others to use. Have a great day! ms-hytech

                          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