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. Make Window Flash 3 Times

Make Window Flash 3 Times

Scheduled Pinned Locked Moved Visual Basic
csharpadobehelpquestion
4 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.
  • A Offline
    A Offline
    Anomaly1024
    wrote on last edited by
    #1

    Hello, I'm using VB.NET and i was just wondering, how can i make a window flash 3 times; when the user clicks on it while the property Enabled is set to false. Any help would be greatly appreciated. Thanks.

    R 1 Reply Last reply
    0
    • A Anomaly1024

      Hello, I'm using VB.NET and i was just wondering, how can i make a window flash 3 times; when the user clicks on it while the property Enabled is set to false. Any help would be greatly appreciated. Thanks.

      R Offline
      R Offline
      r i s h a b h s
      wrote on last edited by
      #2

      u can use the flashWindowEx api function defined in user32.lib enjoy rishabhs

      A 1 Reply Last reply
      0
      • R r i s h a b h s

        u can use the flashWindowEx api function defined in user32.lib enjoy rishabhs

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        Could you please be more specific. I'm not that good with APIs, and I have never done this before. Thanks.

        R 1 Reply Last reply
        0
        • A Anonymous

          Could you please be more specific. I'm not that good with APIs, and I have never done this before. Thanks.

          R Offline
          R Offline
          r i s h a b h s
          wrote on last edited by
          #4

          actually its very simple to do just open the api viewer (either thru addin menu in the ide or from program group (tools) then load file win32api.txt in the api viewer (file->open) add declaration for FlashWindow in ur code another alternate way is to search for file WIn32api.txt (in visual studio folder\common tools) and copy decl of the function in ur code now all u have to do is to just call the function FlashWindow anywhere in ur code and see ur window flashing once put the first param as -> and 2'nd param is to specify whether window inverts its state after flasing or not (See MSDN) if u want to flash n times then add FlashWindowEx function along with FLASHWINFO struct in same way as i told u i hope now u can make it work enjoy

          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