diff --git a/ADF.sln b/ADF.sln
index 1685740..7ea4c59 100644
--- a/ADF.sln
+++ b/ADF.sln
@@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
-Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ADF", "ADF\ADF.vbproj", "{56AD8E06-E293-4B04-8D12-055FE7903D90}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ADF", "ADF\ADF.csproj", "{56AD8E06-E293-4B04-8D12-055FE7903D90}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
diff --git a/ADF/ADF.csproj b/ADF/ADF.csproj
new file mode 100644
index 0000000..a8c5872
--- /dev/null
+++ b/ADF/ADF.csproj
@@ -0,0 +1,31 @@
+
+
+
+ WinExe
+ net8.0-windows
+ true
+ ADF
+ ADF
+ ADF
+ 1.0.0.0
+ 1.0.0.0
+ Copyright © 2009
+ x86
+ enable
+ true
+
+
+
+
+ Interop.MSScriptControl.dll
+ False
+
+
+
+
+
+ Always
+
+
+
+
diff --git a/ADF/ADF.vbproj b/ADF/ADF.vbproj
deleted file mode 100644
index 9035df4..0000000
--- a/ADF/ADF.vbproj
+++ /dev/null
@@ -1,136 +0,0 @@
-
-
-
- Debug
- AnyCPU
- 9.0.30729
- 2.0
- {56AD8E06-E293-4B04-8D12-055FE7903D90}
- WinExe
- ADF.My.MyApplication
- ADF
- ADF
- 512
- WindowsForms
- v2.0
- On
- Binary
- Off
- On
-
-
-
-
- 3.5
-
-
-
- true
- full
- true
- true
- bin\Debug\
- ADF.xml
- 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022,42353,42354,42355
- x86
-
-
- pdbonly
- false
- true
- true
- bin\Release\
- ADF.xml
- 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022,42353,42354,42355
-
-
-
- .\Interop.MSScriptControl.dll
- False
- True
-
-
-
-
-
-
- 3.5
-
-
- 3.5
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Form
-
-
- adf.vb
- Form
-
-
-
-
- True
- Application.myapp
-
-
- True
- True
- Resources.resx
-
-
- True
- Settings.settings
- True
-
-
-
-
- adf.vb
- Designer
-
-
- VbMyResourcesResXFileCodeGenerator
- Resources.Designer.vb
- My.Resources
- Designer
-
-
-
-
-
- MyApplicationCodeGenerator
- Application.Designer.vb
-
-
- SettingsSingleFileGenerator
- My
- Settings.Designer.vb
-
-
-
-
- Always
-
-
-
-
-
\ No newline at end of file
diff --git a/ADF/AdfForm.Designer.cs b/ADF/AdfForm.Designer.cs
new file mode 100644
index 0000000..886b285
--- /dev/null
+++ b/ADF/AdfForm.Designer.cs
@@ -0,0 +1,61 @@
+#nullable enable
+namespace ADF;
+
+partial class AdfForm
+{
+ private System.ComponentModel.IContainer? components = null;
+
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && components != null)
+ components.Dispose();
+ base.Dispose(disposing);
+ }
+
+ private void InitializeComponent()
+ {
+ btnOk = new System.Windows.Forms.Button();
+ lblTitolo = new System.Windows.Forms.Label();
+ SuspendLayout();
+ //
+ // btnOk
+ //
+ btnOk.Location = new System.Drawing.Point(12, 45);
+ btnOk.Name = "btnOk";
+ btnOk.Size = new System.Drawing.Size(253, 41);
+ btnOk.TabIndex = 0;
+ btnOk.Text = "OK";
+ btnOk.UseVisualStyleBackColor = true;
+ btnOk.Click += BtnOk_Click;
+ //
+ // lblTitolo
+ //
+ lblTitolo.AutoSize = true;
+ lblTitolo.Font = new System.Drawing.Font("Tahoma", 20.25f, System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, 0);
+ lblTitolo.Location = new System.Drawing.Point(12, 9);
+ lblTitolo.Name = "lblTitolo";
+ lblTitolo.Size = new System.Drawing.Size(256, 33);
+ lblTitolo.TabIndex = 1;
+ lblTitolo.Text = "A.D.F ver. 0.1 Win";
+ //
+ // AdfForm
+ //
+ AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
+ AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ ClientSize = new System.Drawing.Size(279, 99);
+ Controls.Add(lblTitolo);
+ Controls.Add(btnOk);
+ FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
+ MaximizeBox = false;
+ MinimizeBox = false;
+ Name = "AdfForm";
+ StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+ Text = "ADF";
+ Load += AdfForm_Load;
+ ResumeLayout(false);
+ PerformLayout();
+ }
+
+ private System.Windows.Forms.Button btnOk = null!;
+ private System.Windows.Forms.Label lblTitolo = null!;
+}
diff --git a/ADF/AdfForm.cs b/ADF/AdfForm.cs
new file mode 100644
index 0000000..f249e67
--- /dev/null
+++ b/ADF/AdfForm.cs
@@ -0,0 +1,134 @@
+using System;
+using System.Linq;
+using System.Windows.Forms;
+using MSScriptControl;
+
+namespace ADF;
+
+public partial class AdfForm : Form
+{
+ private ScriptControlClass scrMain = new ScriptControlClass();
+
+ public AdfForm()
+ {
+ InitializeComponent();
+
+ AppDomain.CurrentDomain.UnhandledException += (sender, args) =>
+ {
+ try
+ {
+ MessageBox.Show(((Exception)args.ExceptionObject).Message, "ADF", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ }
+ catch
+ {
+ // ignore
+ }
+ };
+ }
+
+ private void BtnOk_Click(object? sender, EventArgs e)
+ {
+ Close();
+ }
+
+ private void AdfForm_Load(object? sender, EventArgs e)
+ {
+ string strFL = string.Join(" ", Environment.GetCommandLineArgs().Skip(1)).Trim();
+
+ scrMain.Language = "VBScript";
+ scrMain.AllowUI = true;
+
+ if (!string.IsNullOrEmpty(strFL) && System.IO.File.Exists(strFL))
+ {
+ var xmlFL = ClassADF.Carica(strFL);
+
+ foreach (var xmlCon in xmlFL.CONTROLS)
+ CreaControl(this, ref scrMain, xmlCon);
+
+ scrMain.AddCode(xmlFL.MODULO);
+
+ Application.OpenForms.Cast