Results 1 to 13 of 13

Thread: how can i kill my app's ballon?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 1999
    Location
    mousafah,abu-dhabi,UAE
    Posts
    29
    hi all,

    i use AnimateWindow API which make this ugly ballon in the task bar after program terminated,

    how can i kill my app's ballon?

    waiting for F.B

    thanx on advance

    Ahmed Walid

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    hmm.. wich OS do you use? I have win98 and never saw any balloons after using AnimateWindow... how do they look? grey or do you mean a balloon style tooltip?
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Sep 1999
    Location
    mousafah,abu-dhabi,UAE
    Posts
    29
    my OS is win98 v2

    here's the code i use for showing :

    Code:
    AnimateWindow Me.hwnd, 300, AW_CENTER Or AW_ACTIVATE
    for hiding :

    Code:
    AnimateWindow Me.hwnd, 300, AW_CENTER Or AW_HIDE
    set form1 = nothing
    to see the ballon :
    [img]
    http://geocities.com/one2one22/ballon.gif
    [/img]

    bYe
    Ahmed Walid

  4. #4
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    hmmm.. I don't know what your definition of balloon is, but I thought you meant a round thingy with helium (or air, whatever ya want) in it, you know? that shape...

    But I can't seem to see you balloon, do you mean just the icon in the systray?

    I'm a bit
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Sep 1999
    Location
    mousafah,abu-dhabi,UAE
    Posts
    29
    please review this link http://geocities.com/one2one22/ballon.gif

    bYe
    Ahmed Walid

  6. #6
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    I did, my friend... but what do you mean with the ballon?
    that thing you draw with paint or something else? Can anyone else see what he means?
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  7. #7
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Bellevue, WA, USA
    Posts
    1,357
    He's talking about the captionless button that remains in the taskbar after his application is finished.
    ~seaweed

  8. #8
    Fanatic Member ExcalibursZone's Avatar
    Join Date
    Feb 2000
    Location
    Western NY State
    Posts
    908
    Well, I'm not sure, but you can try this:

    Code:
    Form2.Hide
    Form2.ClipControls = False
    Form2.Caption = ""
    when you 'hide' your window. I did some testing and this made the 'balloon' go away while the form was hidden (not unloaded).

    Optionally, if you need to take the form out of memory use:

    Code:
    Unload Me 'This is for the form itself
    Unload Form1 'The name of the form in your project
    These two lines will take the form out of memory or unload the form.

    Or, if you don't want the window to show in the taskbar at all, just set ShowInTaskbar to False during design time.
    -Excalibur

  9. #9
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    hmmm.. why do you call it a balloon? hehe funny


    Try the code from ExcalibursZone, if, for some reason, it doesn't work for you just reply to this post and we might be able to help you out with that 'balloon' stuff

    If it still stays there try

    Code:
    Private Sub Form_QueryUnload(Cancel as Integer, UnloadMode As Integer)
    Dim Form As Form
    For Each Form in Forms
       Unload Form
       Set Form = Nothing 'according to yonatan this isn't nessecary (and I believe him :))
    Next
    End 'Also not nessecary Yoni?
    End Sub
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  10. #10
    Hyperactive Member dsy5's Avatar
    Join Date
    Jul 2000
    Location
    Lockport, NY
    Posts
    362
    I've had the "balloon" effect myself, but only when I run uncompiled in VB. Never had it
    when running a compiled .exe.
    Donald Sy - VB (ab)user

  11. #11
    Member
    Join Date
    Jun 1999
    Location
    Singapore
    Posts
    32
    I'm getting er..."balloons" all the time myself. I get them when my VB application doesn't close properly, when I close a DirectX game, when I close anything that uses alot of CPU or fullscreen mode. I'm using Windows 98SE and one wonders if it has something to do with Windows itself.

    "Hmmmmmmmmmmmmmmm..."

  12. #12
    Junior Member
    Join Date
    Mar 2000
    Posts
    28
    It might be windows because HalfLife leaves that caption-less item in my system tray aswell.

  13. #13

    Thread Starter
    Junior Member
    Join Date
    Sep 1999
    Location
    mousafah,abu-dhabi,UAE
    Posts
    29
    hi all again,

    all the ways didn't work !!!

    i think it may be because windows,

    any other suggestions ???

    bYe
    Ahmed Walid

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