index > Visual C# General > NotifyIcon balloon does not work if application is not in focus. ...

NotifyIcon balloon does not work if application is not in focus. ...

My application shows a balloon in tray when it's done processing a task. This works ok - but if the application is not in focus when the balloon is supposed to be shown, i get this error: "Object reference not set to an instance of an object."

Here's the code:

        public void show_balloon(String title, String text)
        {
            tray.ShowBalloonTip(50, title, text, ToolTipIcon.Info);
        }

Does anyone know what causes this?

James_Steven
Does noone have any idea?
James_Steven
reply 2

You can use google to search for other answers

 

More Articles

• i have error :(
• regEx (relate to what you've found)
• application settings
• System.Web.HttpUtility
• the solution for crystal report error in C#(fail to import report...
• [off topic] How to select Multiple files from users local file sy...
• send mail code to mail from yahoo account to rediff account in as...
• Creating a wizard by using Microsoft.WizardFramework
• How can I get the current position record?
• best practices to secure c# applications
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Uploading and Downloading files (C# .net
• Should be getting an exception... right?
• Of Factories and Singletons
• How to use Serialize for SOAP Format?
• Extending functionality
• HtmlElement Mouse Events
• Registry
• Using the ImagePreviewControl from ShImg
• How to request a specific range of a fil
• authentication
• Instances
• Missing SQL Server Project Template
• C# .net Binary Serialization
• How can I know if the Microsoft Media Pl
• bluetooth

Hot Articles

• MFC CWindow Handles in C#
• Windows media image wrapper
• Shaping a text image
• Getting user input in a 'chatroom' app
• Button Madness (one of many posts to come)
• Creating C# dll to be called in delphi
• BackgroundImage in TreeView control
• database authentication
• Integration of MSDN Library with Visual
• how to start C#?
• Listing files ASP.nET C#
• Annoying GDI+ Window
• Comunication between two forms
• retrieve user name
• image in user control

Recommend Articles

• Driver development
• Command shell in console app.
• integrating modules
• How to add parameters from stored proced
• Specifyng "Font" With Trace Fi
• GIS/Mapping/Geocoding OCX for .NET?
• A problem with WebBrowser control
• Why use Interfaces??
• suo file, what is this ?
• visual c# database
• Problem about Control's SetStyle
• Communiacting with DLL in c#
• Make a Cab file
• style of form
• Threadsafe incrementing value