Hi can i apply this in a windows form C#? BubbleImage

this is an html5 is there any in C# windows form

Recommended Answers

All 2 Replies

You could use the Tooltip class. To customize its appearance, you'll have to set OwnerDraw to true and IsBalloon to false. Then you would handle the Popup and Draw events. The Popup event gives you a chance to specify the bounds (size) of the Tooltip, and the Draw event supplies a Graphics object to specify how you want it rendered.

using System;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace mynotification
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            SetBalloonTip();
        }

        private void SetBalloonTip()
        {
            notifyIcon1.Icon = SystemIcons.Exclamation;
            notifyIcon1.BalloonTipTitle = "NUST";
            notifyIcon1.BalloonTipText = "Zvangu zvaita!!!!!... lol";
            notifyIcon1.BalloonTipIcon = ToolTipIcon.infor;
            notifyIcon1.Visible = true;
            notifyIcon1.ShowBalloonTip(90000);
        }

    }
}

Create a project and add a notification icon.Copy and paste the above code and make some adjustments on the tittle,text,icon and the time you want it to be displayed depending on what you want to be displayed, run the program.The notification icon will pop out automatically.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.