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. How to make a window Flash

How to make a window Flash

Scheduled Pinned Locked Moved Visual Basic
adobehelptutorial
7 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.
  • W Offline
    W Offline
    WestSideRailways
    wrote on last edited by
    #1

    With help from this and other forums, ihave be able to make a countdown timer.:cool: Now what i would like to do is make the programs window Flash when the counter has reached ZERO. can anybody steer me in the right direction. THANKS

    C 1 Reply Last reply
    0
    • W WestSideRailways

      With help from this and other forums, ihave be able to make a countdown timer.:cool: Now what i would like to do is make the programs window Flash when the counter has reached ZERO. can anybody steer me in the right direction. THANKS

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Flash in what way ?

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      W 1 Reply Last reply
      0
      • C Christian Graus

        Flash in what way ?

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        W Offline
        W Offline
        WestSideRailways
        wrote on last edited by
        #3

        I don't really care, "in what way" as long as it stands out.

        C 1 Reply Last reply
        0
        • W WestSideRailways

          I don't really care, "in what way" as long as it stands out.

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Well, to change the title bar, you may be able to set a color property, but I suspect you'd have to owner draw. To flash things on the form, is far easier. Just set a timer to fire and alternate some colors. Kill it after a particular number of iterations.

          Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

          W 1 Reply Last reply
          0
          • C Christian Graus

            Well, to change the title bar, you may be able to set a color property, but I suspect you'd have to owner draw. To flash things on the form, is far easier. Just set a timer to fire and alternate some colors. Kill it after a particular number of iterations.

            Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

            W Offline
            W Offline
            WestSideRailways
            wrote on last edited by
            #5

            I wouls love to alternate some colours, as of yet have not figure out how to do it. what i have in my timer_tick is...

            me.background = color.yellow

            Is there a way to randomly select a .color

            C T 2 Replies Last reply
            0
            • W WestSideRailways

              I wouls love to alternate some colours, as of yet have not figure out how to do it. what i have in my timer_tick is...

              me.background = color.yellow

              Is there a way to randomly select a .color

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              You can build an array and select from there, or select the red/green/blue components at random

              Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

              1 Reply Last reply
              0
              • W WestSideRailways

                I wouls love to alternate some colours, as of yet have not figure out how to do it. what i have in my timer_tick is...

                me.background = color.yellow

                Is there a way to randomly select a .color

                T Offline
                T Offline
                The ANZAC
                wrote on last edited by
                #7

                Yes, use a random class and three integers. Dim Ran as new random dim R as integer = ran.next(0,255) dim G as integer = ran.next(0,255) dim B as integer = ran.next(0,255) me.backgroundcolor = color.fromargb(r,g,b) Your getting three random numbers, rgb values, and making a color out of it.

                Please check out my articles: The ANZAC's articles

                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