PrepAway - Latest Free Exam Questions & Answers

Which segment should you use to write a code to download the updates if the users click the balloon tip?

You are developing a Web service for new updates to query automatically, by use of a Microsoft Windows Forms application. You then add a NotifyIcon component named Certkiller notify to the application’s main form. Whenever a new update is available you want the following balloon tip to display as seen in the exhibit for 5 seconds. Which segment should you use to write a code to download the updates if the users click the balloon tip?

PrepAway - Latest Free Exam Questions & Answers

A.
Certkiller notify.BallonTipClick +=delegate
{
// Download the updates
}
Certkiller notify.ShowBallonTip[5000, “New Update Available”, “Click here to download” , ToolTipIcon.Info];

B.
Certkiller notify.ShowBallonTip[5];
Certkiller notify.BalloonTipIcon = ToolTipIcon.Info;
Certkiller .Balloon TipTitle = “New Update Available”;
Certkiller .BalloonTipText = “Click here to download”;
Certkiller .Click += delegate
{
// Download the updates
}

C.
Certkiller notify.BalloonTipIcon = ToolTipIcon.Info;
Certkiller .Balloon TipTitle = “New Update Available”;
Certkiller .BalloonTipText = “Click here to download”;
Certkiller .Click += delegate
{
// Download the updates
}
Certkiller notify.ShowBallonTip[5000];

D.
Certkiller notify.ShowBallonTip[5, New Update Available”, “Click here to download”, ToolTipIcon.Info];
Certkiller .BalloonTipClick += delegate
{
// Download the updates
}

Explanation:
You should use an event handler, attach the BalloonTipClicked to the event and call the ShowBalloon Tip method of the NotifyIcon class. When a user clicks a balloon tip, a BalloonTipClicked event is raised.


Leave a Reply