Results 1 to 5 of 5

Thread: How to Flash a Window like in Netants Download Manager...

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Location
    India, Chennai
    Posts
    121

    Question How to Flash a Window like in Netants Download Manager...

    Hi Guys,
    What should i do to Flash a Window like in Netants Download Manager. For Example when a Download is completed the Netants shows a Window and the Windows seems to be growing from a Pixel to a window. Can anyone know how to do this...

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    To flash a window use this
    VB Code:
    1. 'This project needs a timer,Interval 1000
    2.  
    3. 'In general section
    4. Private Declare Function FlashWindow Lib "user32" (ByVal hwnd As Long, ByVal bInvert As Long) As Long
    5. Const Invert = 1
    6.  
    7. Private Sub Timer1_Timer()
    8.     'Flash the window
    9.     FlashWindow Me.hwnd, Invert
    10. End Sub
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Location
    India, Chennai
    Posts
    121

    I didn't ask this Effect...

    Hi Vlatko,
    I know how to do this. But what I asked is extremely different from what you've given. Just download the Netants Download Manager from here. After you've downloaded and Installed it. Download a file from anywhere. After successful finish it would display a window with the effect which I asked. Hope this helps to understand my query. Anyway thnx for ur code.

  4. #4
    SanderS
    Guest
    You don't have to use a api but a api is better... You can use this non-api way

    This is only an example of only the form you can add more if you want of course...
    Create a very small form 20 by 28 pix. for example, add a timer with interval=1, set tag=1 and use this code

    Code:
    Private Sub Form_Load()
    Form1.Tag = Form1.Caption
    Form1.Caption = ""
    End Sub
    
    Private Sub Timer1_Timer()
    
    If Me.Height <= 5600 Then Me.Height = Me.Height + 20: Form1.Top = Form1.Top - 10
    If Me.Width <= 7000 Then Me.Width = Me.Width + 25: Form1.Left = Form1.Left - 13
    If Me.Width >= 7000 And Form1.Caption <> Form1.Tag Then
    If Form1.Caption = "" Then Timer1.Interval = Timer1.Interval * 25
    If Form1.Caption = "" Then Form1.Caption = Mid(Form1.Tag, 1, 1) Else Form1.Caption = Form1.Caption & Mid(Form1.Tag, Timer1.Tag, 1)
    Timer1.Tag = Timer1.Tag + 1
    End If
    End Sub
    I use tags but you can better create public values

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Location
    India, Chennai
    Posts
    121

    Thumbs up I got it.. Thnx Sander....

    Hi Sander,
    I got it. I got what I expected. Thnx a Lot....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width