Permalink
Browse files

Show different icon in balloon sample

svn path=/trunk/winforms/; revision=75150
  • Loading branch information...
1 parent 804d435 commit 2219e2177f647ef85631dc4c1df42d479fd4fd4e Everaldo Canuto committed Mar 29, 2007
Showing with 5 additions and 1 deletion.
  1. +5 −1 notifyicon/swf-balloon.cs
@@ -17,7 +17,7 @@ static void Main()
notify_icon.Text = "NotifyIcon Text";
notify_icon.BalloonTipTitle = "Balloon Tip Title";
notify_icon.BalloonTipText = "Mono has both an optimizing just-in-time (JIT) runtime and a interpreter runtime. The interpreter runtime is far less complex and is primarly used in the early stages before a JIT version for that architecture is constructed. The interpreter is not supported on architectures where the JIT has been ported.";
- notify_icon.BalloonTipIcon = ToolTipIcon.Error;
+ notify_icon.BalloonTipIcon = ToolTipIcon.None;
notify_icon.Visible = true;
notify_icon.BalloonTipClicked += new EventHandler (TestForm_BalloonTipClicked);
@@ -51,6 +51,10 @@ private void btnicon_Click (object sender, EventArgs e)
private void btnballoon_Click (object sender, EventArgs e)
{
+ int i = (int) notify_icon.BalloonTipIcon;
+ i = (i == 3) ? 0 : i + 1;
+ notify_icon.BalloonTipIcon = (ToolTipIcon) i;
+
notify_icon.Visible = true;
notify_icon.ShowBalloonTip (1000);
}

0 comments on commit 2219e21

Please sign in to comment.