VB.NET

Moderators: seancampbell
Number of threads: 4020
Number of posts: 10026

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Notify Icon Disappears. Posted by munirshahzad on 19 Jan 2007 at 1:10 AM
I am using VB.Net 2003. My project is about Monitoring Folders. I am using Notify Icon too. when my application starts Icon appears in Taskbar area and works well with Context Menu, but when i hide the form using Me.Hide Notify icon still appears. The problem is that when i take the mouse over the Notify Icon the Icon disappears and application also close without any runtime error.

Thanks in advance.
Shahzad.
Report
Re: Notify Icon Disappears. Posted by PavlinII on 19 Jan 2007 at 4:25 AM
: I am using VB.Net 2003. My project is about Monitoring Folders. I am using Notify Icon too. when my application starts Icon appears in Taskbar area and works well with Context Menu, but when i hide the form using Me.Hide Notify icon still appears. The problem is that when i take the mouse over the Notify Icon the Icon disappears and application also close without any runtime error.
:
: Thanks in advance.
: Shahzad.
:
Hi,
when you register notify icon and close application without unregistering it, nofity icon disappears when you hover your mouse over it.

So it looks that your application is already closed BEFORE you move your mouse to Notify icon..



Pavlin II[/size]

Don't take life too seriously anyway you won't escape alive from it!


Report
Re: Notify Icon Disappears. Posted by munirshahzad on 20 Jan 2007 at 12:57 AM
: : I am using VB.Net 2003. My project is about Monitoring Folders. I am using Notify Icon too. when my application starts Icon appears in Taskbar area and works well with Context Menu, but when i hide the form using Me.Hide Notify icon still appears. The problem is that when i take the mouse over the Notify Icon the Icon disappears and application also close without any runtime error.

: Hi,
: when you register notify icon and close application without unregistering it, nofity icon disappears when you hover your mouse over it.
:
: So it looks that your application is already closed BEFORE you move your mouse to Notify icon..
:
: Pavlin II[/size]
:
: Don't take life too seriously anyway you won't escape alive from it!
:
Thanks for reply.
I do not understand the work "Register".
Please Clarify it.

Shahzad.

Report
Re: Notify Icon Disappears. Posted by PavlinII on 20 Jan 2007 at 5:21 AM
: : : I am using VB.Net 2003. My project is about Monitoring Folders. I am using Notify Icon too. when my application starts Icon appears in Taskbar area and works well with Context Menu, but when i hide the form using Me.Hide Notify icon still appears. The problem is that when i take the mouse over the Notify Icon the Icon disappears and application also close without any runtime error.
:
: : Hi,
: : when you register notify icon and close application without unregistering it, nofity icon disappears when you hover your mouse over it.
: :
: : So it looks that your application is already closed BEFORE you move your mouse to Notify icon..
: :
: : Pavlin II[/size]
: :
: : Don't take life too seriously anyway you won't escape alive from it!
: :
: Thanks for reply.
: I do not understand the work "Register".
: Please Clarify it.
:
: Shahzad.
:
:
Hi,
registering notify icon means that your application is requiring (registering) some icon as system tray icon and system adds it there. You do not need care about this phase in your application, .NET will register/unregister it for you.

Important part is this:
> So it looks that your application is already closed BEFORE you move your mouse to Notify icon..

Are you sure that your application is running just before you move your mouse over notify icon?
I'm not sure if you have some visible form by that time (and if you're absolutely sure that your application is running - is visible in task manager)




Pavlin II[/size]

Don't take life too seriously anyway you won't escape alive from it!


Report
Re: Notify Icon Disappears. Posted by munirshahzad on 27 Jan 2007 at 5:02 AM
: : : : I am using VB.Net 2003. My project is about Monitoring Folders. I am using Notify Icon too. when my application starts Icon appears in Taskbar area and works well with Context Menu, but when i hide the form using Me.Hide Notify icon still appears. The problem is that when i take the mouse over the Notify Icon the Icon disappears and application also close without any runtime error.
: :
: : : Hi,
: : : when you register notify icon and close application without unregistering it, nofity icon disappears when you hover your mouse over it.
: : :
: : : So it looks that your application is already closed BEFORE you move your mouse to Notify icon..
: : :
: : : Pavlin II[/size]
: : :
: : : Don't take life too seriously anyway you won't escape alive from it!
: : :
: : Thanks for reply.
: : I do not understand the work "Register".
: : Please Clarify it.
: :
: : Shahzad.
: :
: :
: Hi,
: registering notify icon means that your application is requiring (registering) some icon as system tray icon and system adds it there. You do not need care about this phase in your application, .NET will register/unregister it for you.
:
: Important part is this:
: > So it looks that your application is already closed BEFORE you move your mouse to Notify icon..
:
: Are you sure that your application is running just before you move your mouse over notify icon?
: I'm not sure if you have some visible form by that time (and if you're absolutely sure that your application is running - is visible in task manager)
:
:
:
:
: Pavlin II[/size]
:
: Don't take life too seriously anyway you won't escape alive from it!
:
:
:
Hi,
when i use the command Me.Hide, the application is closed, and also disappear from Task Manager window. what i use to hide the form. i have only one form.

Thanks
Shahzad.

Report
Re: Notify Icon Disappears. Posted by PavlinII on 1 Feb 2007 at 4:35 AM
: : : : : I am using VB.Net 2003. My project is about Monitoring Folders. I am using Notify Icon too. when my application starts Icon appears in Taskbar area and works well with Context Menu, but when i hide the form using Me.Hide Notify icon still appears. The problem is that when i take the mouse over the Notify Icon the Icon disappears and application also close without any runtime error.
: : :
: : : : Hi,
: : : : when you register notify icon and close application without unregistering it, nofity icon disappears when you hover your mouse over it.
: : : :
: : : : So it looks that your application is already closed BEFORE you move your mouse to Notify icon..
: : : :
: : : : Pavlin II[/size]
: : : :
: : : : Don't take life too seriously anyway you won't escape alive from it!
: : : :
: : : Thanks for reply.
: : : I do not understand the work "Register".
: : : Please Clarify it.
: : :
: : : Shahzad.
: : :
: : :
: : Hi,
: : registering notify icon means that your application is requiring (registering) some icon as system tray icon and system adds it there. You do not need care about this phase in your application, .NET will register/unregister it for you.
: :
: : Important part is this:
: : > So it looks that your application is already closed BEFORE you move your mouse to Notify icon..
: :
: : Are you sure that your application is running just before you move your mouse over notify icon?
: : I'm not sure if you have some visible form by that time (and if you're absolutely sure that your application is running - is visible in task manager)
: :
: :
: :
: :
: : Pavlin II[/size]
: :
: : Don't take life too seriously anyway you won't escape alive from it!
: :
: :
: :
: Hi,
: when i use the command Me.Hide, the application is closed, and also disappear from Task Manager window. what i use to hide the form. i have only one form.
:
: Thanks
: Shahzad.
:
:
Me.Hide is not supposed to close your application. There must be something in Form_Deactivate (or similar event) that closes your applicaiton after Me.Hide is called. Try to step throught your code and the place where your application is terminated.

Pavlin II[/size]

Don't take life too seriously anyway you won't escape alive from it!





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.