Visual Studio 2005 Pro

program.cs

codice:
using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace Easy
{
    static class Program
    {
        /// <summary>
        /// Punto di ingresso principale dell'applicazione.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new principale());
        }
        
    }
}

principale.cs
codice:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Easy
{
    public partial class principale : Form
    {
        public principale()
        {
            InitializeComponent();
        }

        private void documentation_Click(object sender, EventArgs e)
        {
            try
            {
                System.Diagnostics.Process.Start("Easy.pdf");
            }
            catch (System.IO.FileNotFoundException fnfEx)
            {
                MessageBox.Show("Attenzione! Impossibile trovare il file della documentazione.");   
            }
            catch (Exception ex)
            {
                MessageBox.Show("Attenzione! Impossibile aprire il file. Necessario Adobe Reader.");
            }
            finally
            {
                
            }


            
        }

        private void nuovo_EOW_Click(object sender, EventArgs e)
        {
            fase1 lafase1 = new fase1();
            //lafase1.FormClosing += new FormClosingEventHandler(lafase1_FormClosing);
            lafase1.Show(); //qui faccio partire il secondo FORM
        }
        

    }
}

fase1.cs

codice:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Easy
{
    
    public partial class fase1 : Form
    {
        public fase1()
        {
            InitializeComponent();
            //principale.ActiveForm.Visible = false;
        }

        private void fase1_Load(object sender, EventArgs e)
        {
            MessageBox.Show("BLABLABLABLABLA", "My Application", MessageBoxButtons.YesNo); //questo funziona

        }

        private void fase1_FormClosed(object sender, FormClosedEventArgs e)
            {
            MessageBox.Show("Do you want to save changes to your text?", "My Application", MessageBoxButtons.YesNo);
            }  //QUESTO NON FUNZIONA

        
        /*private void fase1_Closed(object sender, System.ComponentModel.CancelEventArgs e)
        {
            MessageBox.Show("Do you want to save changes to your text?", "My Application", MessageBoxButtons.YesNo);
        }*/  
//nemmeno questo funziona


    }
}

fase1.Designer.cs

codice:
namespace Easy
{
    partial class fase1
    {
        /// <summary>
        /// Variabile di progettazione necessaria.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Liberare le risorse in uso.
        /// </summary>
        /// <param name="disposing">ha valore true se le risorse gestite devono essere eliminate, false in caso contrario.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Codice generato da Progettazione Windows Form

        /// <summary>
        /// Metodo necessario per il supporto della finestra di progettazione. Non modificare
        /// il contenuto del metodo con l'editor di codice.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.infolicenza = new System.Windows.Forms.GroupBox();
            this.tabControl1 = new System.Windows.Forms.TabControl();
            this.tabPage1 = new System.Windows.Forms.TabPage();
            this.tabPage2 = new System.Windows.Forms.TabPage();
            this.infocontenuto = new System.Windows.Forms.GroupBox();
            this.labuidlicenza = new System.Windows.Forms.Label();
            this.UID_Licenza = new System.Windows.Forms.TextBox();
            this.info_UID_licenza = new System.Windows.Forms.ToolTip(this.components);
            this.infolicenza.SuspendLayout();
            this.tabControl1.SuspendLayout();
            this.SuspendLayout();
            // 
            // infolicenza
            // 
            this.infolicenza.Controls.Add(this.UID_Licenza);
            this.infolicenza.Controls.Add(this.labuidlicenza);
            this.infolicenza.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.infolicenza.Location = new System.Drawing.Point(12, 33);
            this.infolicenza.Name = "infolicenza";
            this.infolicenza.Size = new System.Drawing.Size(367, 223);
            this.infolicenza.TabIndex = 0;
            this.infolicenza.TabStop = false;
            this.infolicenza.Text = "Informazioni Licenza";
            // 
            // tabControl1
            // 
            this.tabControl1.Controls.Add(this.tabPage1);
            this.tabControl1.Controls.Add(this.tabPage2);
            this.tabControl1.Location = new System.Drawing.Point(400, 33);
            this.tabControl1.Name = "tabControl1";
            this.tabControl1.SelectedIndex = 0;
            this.tabControl1.Size = new System.Drawing.Size(379, 374);
            this.tabControl1.TabIndex = 1;
            // 
            // tabPage1
            // 
            this.tabPage1.Location = new System.Drawing.Point(4, 22);
            this.tabPage1.Name = "tabPage1";
            this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
            this.tabPage1.Size = new System.Drawing.Size(371, 348);
            this.tabPage1.TabIndex = 0;
            this.tabPage1.Text = "tabPage1";
            this.tabPage1.UseVisualStyleBackColor = true;
            // 
            // tabPage2
            // 
            this.tabPage2.Location = new System.Drawing.Point(4, 22);
            this.tabPage2.Name = "tabPage2";
            this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
            this.tabPage2.Size = new System.Drawing.Size(192, 74);
            this.tabPage2.TabIndex = 1;
            this.tabPage2.Text = "tabPage2";
            this.tabPage2.UseVisualStyleBackColor = true;
            // 
            // infocontenuto
            // 
            this.infocontenuto.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.infocontenuto.Location = new System.Drawing.Point(12, 262);
            this.infocontenuto.Name = "infocontenuto";
            this.infocontenuto.Size = new System.Drawing.Size(367, 145);
            this.infocontenuto.TabIndex = 2;
            this.infocontenuto.TabStop = false;
            this.infocontenuto.Text = "Informazioni Contenuto";
            // 
            // labuidlicenza
            // 
            this.labuidlicenza.AutoSize = true;
            this.labuidlicenza.Location = new System.Drawing.Point(6, 39);
            this.labuidlicenza.Name = "labuidlicenza";
            this.labuidlicenza.Size = new System.Drawing.Size(95, 17);
            this.labuidlicenza.TabIndex = 0;
            this.labuidlicenza.Text = "UID Licenza";
            // 
            // UID_Licenza
            // 
            this.UID_Licenza.Location = new System.Drawing.Point(107, 39);
            this.UID_Licenza.Name = "UID_Licenza";
            this.UID_Licenza.Size = new System.Drawing.Size(254, 23);
            this.UID_Licenza.TabIndex = 1;
            // 
            // info_UID_licenza
            // 
            this.info_UID_licenza.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Info;
            this.info_UID_licenza.UseAnimation = false;
            this.info_UID_licenza.Popup += new System.Windows.Forms.PopupEventHandler(this.info_UID_licenza_Popup);
            // 
            // fase1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(790, 457);
            this.Controls.Add(this.infocontenuto);
            this.Controls.Add(this.tabControl1);
            this.Controls.Add(this.infolicenza);
            this.Name = "fase1";
            this.Text = "Easy ODRL Writer - FASE1";
            this.Load += new System.EventHandler(this.fase1_Load);
            this.infolicenza.ResumeLayout(false);
            this.infolicenza.PerformLayout();
            this.tabControl1.ResumeLayout(false);
            this.ResumeLayout(false);
            //SECONDO ME C'E da AGGIUNGERE QUALCOSA QUI MA HO PROVATO UNA VALANGA DI COSE

        }

        #endregion

        private System.Windows.Forms.GroupBox infolicenza;
        private System.Windows.Forms.TabControl tabControl1;
        private System.Windows.Forms.TabPage tabPage1;
        private System.Windows.Forms.TabPage tabPage2;
        private System.Windows.Forms.GroupBox infocontenuto;
        private System.Windows.Forms.Label labuidlicenza;
        private System.Windows.Forms.TextBox UID_Licenza;
        private System.Windows.Forms.ToolTip info_UID_licenza;





    }
}
grazie infinite