private void timerInfoBallon_Tick(object sender, System.EventArgs e) { timerInfoBallon.Enabled = false; m_InfoBalloon = new Balloon(); m_InfoBalloon.CaptionImage = new Bitmap(typeof(frmMain), "Info.png"); m_InfoBalloon.CaptionText = "New DotNetBar Feature Alert..."; m_InfoBalloon.Text = "DotNetBar now includes Balloon control to help you convey your information effectively to the end-user.\nCheck out Find command implementation in this sample for an example of highly customized Balloon control."; m_InfoBalloon.AutoResize(); BaseItem item = dotNetBarManager1.Bars["edit"].Items["bFind"]; m_InfoBalloon.AutoCloseTimeOut = 10; m_InfoBalloon.Owner = this; m_InfoBalloon.Show(item, false); }
public static void ShowToolTimInvaide(string text, Control sender) { Balloon ball = new Balloon(); ball.Style = eBallonStyle.Balloon; ball.CaptionText = "Error de validación"; ball.Text = "\t" + text; ball.AlertAnimation = eAlertAnimation.TopToBottom; ball.Font = new Font("Segoe UI Light", 8F); ball.CaptionFont = new Font("Segoe UI Light", 10F); ball.AutoResize(); ball.AutoClose = true; ball.AutoCloseTimeOut = 4; ball.BackColor = Color.FromArgb(0, 102, 204); ball.ForeColor = Color.White; ball.CaptionColor = Color.WhiteSmoke; ball.BorderColor = Color.White; ball.Owner = GetFormParent(sender); ball.Show(sender, false); }