Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
Trojan Server - MBox.cs

MBox.cs

Caricato da:
Scarica il programma completo

  1. using System;
  2. using System.Drawing;
  3. using System.Collections;
  4. using System.ComponentModel;
  5. using System.Windows.Forms;
  6.  
  7. namespace Server
  8. {
  9.         /// <summary>
  10.         /// Descrizione di riepilogo per MBox.
  11.         /// </summary>
  12.         public class MBox : System.Windows.Forms.Form
  13.         {
  14.                 private System.Windows.Forms.Label l;
  15.                 /// <summary>
  16.                 /// Variabile di progettazione necessaria.
  17.                 /// </summary>
  18.                 private System.ComponentModel.Container components = null;
  19.  
  20.                 public MBox(string titolo,string messaggio)
  21.                 {
  22.                         //
  23.                         // Necessario per il supporto di Progettazione Windows Form
  24.                         //
  25.                         InitializeComponent();
  26.                         this.Text=titolo;
  27.                         l.Text=messaggio;
  28.                         this.TopMost=true;
  29.                 }
  30.  
  31.                 /// <summary>
  32.                 /// Pulire le risorse in uso.
  33.                 /// </summary>
  34.                 protected override void Dispose( bool disposing )
  35.                 {
  36.                         if( disposing )
  37.                         {
  38.                                 if(components != null)
  39.                                 {
  40.                                         components.Dispose();
  41.                                 }
  42.                         }
  43.                         base.Dispose( disposing );
  44.                 }
  45.  
  46.                 #region Codice generato da Progettazione Windows Form
  47.                 /// <summary>
  48.                 /// Metodo necessario per il supporto della finestra di progettazione. Non modificare
  49.                 /// il contenuto del metodo con l'editor di codice.
  50.                 /// </summary>
  51.                 private void InitializeComponent()
  52.                 {
  53.                         this.l = new System.Windows.Forms.Label();
  54.                         this.SuspendLayout();
  55.                         //
  56.                         // l
  57.                         //
  58.                         this.l.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  59.                         this.l.Location = new System.Drawing.Point(16, 8);
  60.                         this.l.Name = "l";
  61.                         this.l.Size = new System.Drawing.Size(304, 56);
  62.                         this.l.TabIndex = 0;
  63.                         //
  64.                         // MBox
  65.                         //
  66.                         this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
  67.                         this.ClientSize = new System.Drawing.Size(330, 72);
  68.                         this.Controls.Add(this.l);
  69.                         this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
  70.                         this.MaximizeBox = false;
  71.                         this.MinimizeBox = false;
  72.                         this.Name = "MBox";
  73.                         this.ShowInTaskbar = false;
  74.                         this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
  75.                         this.Text = "MBox";
  76.                         this.Load += new System.EventHandler(this.MBox_Load);
  77.                         this.ResumeLayout(false);
  78.  
  79.                 }
  80.                 #endregion
  81.  
  82.                 private void button1_Click(object sender, System.EventArgs e)
  83.                 {
  84.                         Close();
  85.                 }
  86.  
  87.                 private void MBox_Load(object sender, System.EventArgs e)
  88.                 {
  89.                
  90.                 }
  91.         }
  92. }