Colors

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pushpendra vats

    Colors

    u just have to write the code as

    button1.backcol or=color.red

    thats it

    [color=blue]
    >-----Original Message-----
    >Sorry about that guys,
    >
    >my question is if i have a color like red or ff808040 ..
    >how do i set the color of a button to red or ff808040 ???
    >
    >
    >NEED CODE PLEASE
    >THANX IN ADVANCE
    >.
    >[/color]
  • Will

    #2
    RE: Colors


    i know that ...

    but ff808040 is not Red its some color that the colordialog1 returns when i click on it ... so i cant really use it the way i use any other colored returned by the colordialog1 (ex: red,white,black , etc...)

    Comment

    • Will

      #3
      RE: Colors


      i know that ...

      but ff808040 is not Red its some color that the colordialog1 returns when i click on it ... so i cant really use it the way i use any other colored returned by the colordialog1 (ex: red,white,black , etc...)

      Comment

      • Brian Henry

        #4
        Re: Colors

        he's trying to convert what people now think of as "HTML Colors" to a color
        her can use in the app


        "pushpendra vats" <pushpendravats @hotmail.com> wrote in message
        news:1a0c201c41 d73$3f5f9610$a5 01280a@phx.gbl. ..[color=blue]
        > u just have to write the code as
        >
        > button1.backcol or=color.red
        >
        > thats it
        >
        >[color=green]
        > >-----Original Message-----
        > >Sorry about that guys,
        > >
        > >my question is if i have a color like red or ff808040 ..
        > >how do i set the color of a button to red or ff808040 ???
        > >
        > >
        > >NEED CODE PLEASE
        > >THANX IN ADVANCE
        > >.
        > >[/color][/color]


        Comment

        • Brian Henry

          #5
          Re: Colors

          he's trying to convert what people now think of as "HTML Colors" to a color
          her can use in the app


          "pushpendra vats" <pushpendravats @hotmail.com> wrote in message
          news:1a0c201c41 d73$3f5f9610$a5 01280a@phx.gbl. ..[color=blue]
          > u just have to write the code as
          >
          > button1.backcol or=color.red
          >
          > thats it
          >
          >[color=green]
          > >-----Original Message-----
          > >Sorry about that guys,
          > >
          > >my question is if i have a color like red or ff808040 ..
          > >how do i set the color of a button to red or ff808040 ???
          > >
          > >
          > >NEED CODE PLEASE
          > >THANX IN ADVANCE
          > >.
          > >[/color][/color]


          Comment

          • Cor Ligthert

            #6
            Re: Colors

            Hi Brian,
            [color=blue]
            > he's trying to convert what people now think of as "HTML Colors" to a[/color]
            color[color=blue]
            > her can use in the app[/color]

            And I have a routine for it however JavaScript and was curious if I would
            spent some time in it, however I saw it is not needed.

            :-)

            Cor


            Comment

            • Cor Ligthert

              #7
              Re: Colors

              Hi Brian,
              [color=blue]
              > he's trying to convert what people now think of as "HTML Colors" to a[/color]
              color[color=blue]
              > her can use in the app[/color]

              And I have a routine for it however JavaScript and was curious if I would
              spent some time in it, however I saw it is not needed.

              :-)

              Cor


              Comment

              • Rob Oldfield

                #8
                Re: Colors

                Isn't it just...

                Dim col As System.Drawing. Color
                ColorDialog1.Sh owDialog()
                col = ColorDialog1.Co lor
                Me.BackColor = col

                (....I've never used the ColorDialog before so I may have something
                fundamentally wrong.)


                "Will" <anonymous@disc ussions.microso ft.com> wrote in message
                news:362E801D-247D-4B79-A6B8-72E1722B87CF@mi crosoft.com...[color=blue]
                >
                > i know that ...
                >
                >
                > but ff808040 is not Red its some color that the colordialog1 returns when[/color]
                i click on it ... so i cant really use it the way i use any other colored
                returned by the colordialog1 (ex: red,white,black , etc...)


                Comment

                • Rob Oldfield

                  #9
                  Re: Colors

                  Isn't it just...

                  Dim col As System.Drawing. Color
                  ColorDialog1.Sh owDialog()
                  col = ColorDialog1.Co lor
                  Me.BackColor = col

                  (....I've never used the ColorDialog before so I may have something
                  fundamentally wrong.)


                  "Will" <anonymous@disc ussions.microso ft.com> wrote in message
                  news:362E801D-247D-4B79-A6B8-72E1722B87CF@mi crosoft.com...[color=blue]
                  >
                  > i know that ...
                  >
                  >
                  > but ff808040 is not Red its some color that the colordialog1 returns when[/color]
                  i click on it ... so i cant really use it the way i use any other colored
                  returned by the colordialog1 (ex: red,white,black , etc...)


                  Comment

                  • Armin Zingler

                    #10
                    Re: Colors

                    "Will" <anonymous@disc ussions.microso ft.com> schrieb[color=blue]
                    >
                    > i know that ...
                    >
                    >
                    > but ff808040 is not Red its some color that the colordialog1 returns
                    > when i click on it ... so i cant really use it the way i use any
                    > other colored returned by the colordialog1 (ex: red,white,black ,
                    > etc...)[/color]

                    What is ff808040? A String? Integer?

                    Have a look at Color.FromARGB and Convert.ToInt32 (<string>, 16)


                    --
                    Armin

                    How to quote and why:



                    Comment

                    • Armin Zingler

                      #11
                      Re: Colors

                      "Will" <anonymous@disc ussions.microso ft.com> schrieb[color=blue]
                      >
                      > i know that ...
                      >
                      >
                      > but ff808040 is not Red its some color that the colordialog1 returns
                      > when i click on it ... so i cant really use it the way i use any
                      > other colored returned by the colordialog1 (ex: red,white,black ,
                      > etc...)[/color]

                      What is ff808040? A String? Integer?

                      Have a look at Color.FromARGB and Convert.ToInt32 (<string>, 16)


                      --
                      Armin

                      How to quote and why:



                      Comment

                      • Ken Tucker [MVP]

                        #12
                        Re: Colors

                        Hi,

                        Button1.BackCol or = System.Drawing. ColorTranslator .FromHtml(&HFF8 08040)



                        Ken

                        ---------------------

                        "Brian Henry" <brianiup[nospam]@adelphia.net> wrote in message
                        news:OtscQ8XHEH A.3240@TK2MSFTN GP12.phx.gbl...[color=blue]
                        > he's trying to convert what people now think of as "HTML Colors" to a[/color]
                        color[color=blue]
                        > her can use in the app
                        >
                        >
                        > "pushpendra vats" <pushpendravats @hotmail.com> wrote in message
                        > news:1a0c201c41 d73$3f5f9610$a5 01280a@phx.gbl. ..[color=green]
                        > > u just have to write the code as
                        > >
                        > > button1.backcol or=color.red
                        > >
                        > > thats it
                        > >
                        > >[color=darkred]
                        > > >-----Original Message-----
                        > > >Sorry about that guys,
                        > > >
                        > > >my question is if i have a color like red or ff808040 ..
                        > > >how do i set the color of a button to red or ff808040 ???
                        > > >
                        > > >
                        > > >NEED CODE PLEASE
                        > > >THANX IN ADVANCE
                        > > >.
                        > > >[/color][/color]
                        >
                        >[/color]


                        Comment

                        • Ken Tucker [MVP]

                          #13
                          Re: Colors

                          Hi,

                          Button1.BackCol or = System.Drawing. ColorTranslator .FromHtml(&HFF8 08040)



                          Ken

                          ---------------------

                          "Brian Henry" <brianiup[nospam]@adelphia.net> wrote in message
                          news:OtscQ8XHEH A.3240@TK2MSFTN GP12.phx.gbl...[color=blue]
                          > he's trying to convert what people now think of as "HTML Colors" to a[/color]
                          color[color=blue]
                          > her can use in the app
                          >
                          >
                          > "pushpendra vats" <pushpendravats @hotmail.com> wrote in message
                          > news:1a0c201c41 d73$3f5f9610$a5 01280a@phx.gbl. ..[color=green]
                          > > u just have to write the code as
                          > >
                          > > button1.backcol or=color.red
                          > >
                          > > thats it
                          > >
                          > >[color=darkred]
                          > > >-----Original Message-----
                          > > >Sorry about that guys,
                          > > >
                          > > >my question is if i have a color like red or ff808040 ..
                          > > >how do i set the color of a button to red or ff808040 ???
                          > > >
                          > > >
                          > > >NEED CODE PLEASE
                          > > >THANX IN ADVANCE
                          > > >.
                          > > >[/color][/color]
                          >
                          >[/color]


                          Comment

                          • Cor Ligthert

                            #14
                            Re: Colors

                            HI Ken,

                            Thank you

                            Cor[color=blue]
                            >
                            > Button1.BackCol or = System.Drawing. ColorTranslator .FromHtml(&HFF8 08040)[/color]


                            Comment

                            • Cor Ligthert

                              #15
                              Re: Colors

                              HI Ken,

                              Thank you

                              Cor[color=blue]
                              >
                              > Button1.BackCol or = System.Drawing. ColorTranslator .FromHtml(&HFF8 08040)[/color]


                              Comment

                              Working...