BalloonTip, DevComponents.
This control creates a balloon style pop-up window that displays a brief description
of a control's purpose when the mouse hovers over the control or when controls receives
input focus.
The BallonTip control supports various styles, images and events. The events supported
by the BallonTip control are the opening and closing events.
Namespace: DevComponents.DotNetBar
Assembly: DevComponents.DotNetBar2.dll
Using: DevComponents.DotNetBar;
Declaring: DevComponents.DotNetBar.BalloonTip();
Creating a BallonTip.
private DevComponents.DotNetBar.BalloonTip balloonTip1 = new DevComponents.DotNetBar.BalloonTip();
Setting the BallonTip properties: Assigning text to the BallonTip caption, to the
BallonTip Text, Image for the caption and the control for the BallonTip.
this.balloonTip1.SetBalloonCaption(this.textBoxX2, "Attention!");
this.balloonTip1.SetBalloonText(this.textBoxX2, "Please enter both first name and
surname.");
this.balloonTip1.CaptionImage = global::WindowsApplication2.Properties.Resources.Warning;
this.balloonTip1.ShowBalloon(this.textBoxX2);
Creating BallonTip events.
this.balloonTip1.BalloonDisplaying += new System.EventHandler(this.balloonTip1_BalloonDisplaying);
this.balloonTip1.BalloonClosing += new System.ComponentModel.CancelEventHandler(this.balloonTip1_BalloonClosing);
Responding to the BallonTip events.
private void balloonTip1_BalloonDisplaying(object sender, EventArgs e) { }
private void balloonTip1_BalloonClosing(object sender, CancelEventArgs e) { }
Screenshots - BalloonTip, DevComponents.
|