Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

tulpep notification window example c#

public void notifyCriticalItems()
    {
        string critical = "";
        con.conDB.Open();
        cmd = new MySqlCommand("Select count(*) from vwcriticalitems", con.conDB);
        string count = cmd.ExecuteScalar().ToString();
        con.conDB.Close();
        int i = 0;
        con.conDB.Open();
        cmd = new MySqlCommand("Select * from vwcriticalitems", con.conDB);
        dr = cmd.ExecuteReader();
        while (dr.Read())
        {
            i++;
            critical += i + ". " + dr["pdesc"].ToString() + Environment.NewLine;
        }
        dr.Close();
        con.conDB.Close();

        PopupNotifier popup = new PopupNotifier();
        popup.Image = Properties.Resources.icons8_brake_warning_25px_1;
        popup.ContentFont = new System.Drawing.Font("Tahoma", 8F);
        popup.Size = new Size(400, 100);
        popup.ShowGrip = false;
        popup.HeaderHeight = 20;
        popup.TitlePadding = new Padding(3);
        popup.ContentPadding = new Padding(3);
        popup.ImagePadding = new Padding(8);
        popup.AnimationDuration = 1000;
        popup.AnimationInterval = 1;
        popup.HeaderColor = Color.FromArgb(252, 164, 2);
        popup.Scroll = true;
        popup.ShowCloseButton = false;
        popup.TitleText = "CRITICAL ITEM(S)";
        popup.ContentText = critical;
        popup.Popup();
    }
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity matchinfo 
Csharp :: c# properties making string required 
Csharp :: .net 6 foreach only if not null 
Csharp :: Here we create a MigraDoc Document object to draw the content of this page 
Csharp :: matric multiplication 
Csharp :: split nullable in c# 
Csharp :: get fixedupdate interval unity 
Csharp :: asp.net render control to string 
Csharp :: c# boolean 
Csharp :: cs foreach int 
Csharp :: dotween do rotate on one axis 
Csharp :: ignore warning openxml 
Csharp :: Show Form on Second Monitor 
Csharp :: visual studio debug copy byte[] from watch 
Csharp :: All and Any linq c# examlpe replace 
Csharp :: unity wheelcollider antiroll 
Csharp :: c# check if value in dictionary are unique 
Csharp :: boucle C# 
Csharp :: netmath hack 
Csharp :: Process start web document 
Csharp :: c# inline 
Csharp :: appodeal unity integration 
Csharp :: Make a variable public without showing in the inspector 
Csharp :: Area Of the triangle with condition 
Csharp :: C# listview as listbox 
Csharp :: change text color wpf 
Csharp :: insert variables into a string C# 
Csharp :: google tradutor 
Csharp :: unity ik not working 
Csharp :: como guardar archivo en un botón asp.net 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =