removed the border around the text box and fixed the "Open With" function

This commit is contained in:
Brendan
2024-05-31 22:32:59 +02:00
parent e16091be31
commit 4c52a98373
6 changed files with 57 additions and 17 deletions

View File

@@ -13,11 +13,24 @@ namespace V_EditorPro
/// Der Haupteinstiegspunkt für die Anwendung.
/// </summary>
[STAThread]
static void Main()
static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
if (args.Length > 0)
{
// A file was passed as an argument
string filePath = args[0];
// Create the main form and pass the file path to it
Application.Run(new MainForm(filePath));
}
else
{
// No file was passed as an argument
Application.Run(new MainForm());
}
}
}
}
}