Question:

What is wrong in my code?

by  |  earlier

0 LIKES UnLike

i written this code in C#.Net

when i write

"NotifyIcon.ShowBalloonTip(5000, "App Started", "The App is started", ToolTipIcon.Info);"

to get a Notify Info Balloon it gives an Error, the error is

An Object refrence is required for the nonstatic field, method, or property 'System.Windows.Forms.NotifyIcon.ShowBal... string, string, System.Windows.Forms.ToolTipIcon)'

what am i doing wrong?

 Tags:

   Report

1 ANSWERS


  1. Do you use NotifyIcon class like as object?!

    try the following code:

    NotifyIcon myNotifyIcon1=new NotifyIcon();

    myNotifyIcon1.ShowBalloonTip(5000, "App Started", "The App is started", ToolTipIcon.Info);  

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.