diff --git a/ICSharpCode.TextEditor.Sample/ICSharpCode.TextEditor.Sample.csproj b/ICSharpCode.TextEditor.Sample/ICSharpCode.TextEditor.Sample.csproj
index 3a9c624..9a199c7 100644
--- a/ICSharpCode.TextEditor.Sample/ICSharpCode.TextEditor.Sample.csproj
+++ b/ICSharpCode.TextEditor.Sample/ICSharpCode.TextEditor.Sample.csproj
@@ -2,7 +2,7 @@
WinExe
- net9.0-windows
+ net10.0-windows
true
diff --git a/Project/GlobalSuppressions.cs b/Project/GlobalSuppressions.cs
new file mode 100644
index 0000000..1cacda4
--- /dev/null
+++ b/Project/GlobalSuppressions.cs
@@ -0,0 +1,8 @@
+// This file is used by Code Analysis to maintain SuppressMessage
+// attributes that are applied to this project.
+// Project-level suppressions either have no target or are given
+// a specific target and scoped to a namespace, type, member, etc.
+
+using System.Diagnostics.CodeAnalysis;
+
+[assembly: SuppressMessage("Style", "IDE0008:Use explicit type", Justification = "")]
diff --git a/Project/ICSharpCode.TextEditor.csproj b/Project/ICSharpCode.TextEditor.csproj
index b50b16c..0ed3fd0 100644
--- a/Project/ICSharpCode.TextEditor.csproj
+++ b/Project/ICSharpCode.TextEditor.csproj
@@ -2,7 +2,7 @@
Library
- net9.0-windows
+ net10.0-windows
true
false
true
diff --git a/Project/Src/Gui/CompletionWindow/AbstractCompletionWindow.cs b/Project/Src/Gui/CompletionWindow/AbstractCompletionWindow.cs
index 53596f8..921c531 100644
--- a/Project/Src/Gui/CompletionWindow/AbstractCompletionWindow.cs
+++ b/Project/Src/Gui/CompletionWindow/AbstractCompletionWindow.cs
@@ -162,9 +162,9 @@ protected void TextEditorLostFocus(object sender, EventArgs e)
Close();
}
- protected override void OnClosed(EventArgs e)
+ protected override void OnFormClosed(FormClosedEventArgs e)
{
- base.OnClosed(e);
+ base.OnFormClosed(e);
// take out the inserted methods
parentForm.LocationChanged -= ParentFormLocationChanged;
@@ -204,4 +204,4 @@ protected void ControlMouseMove(object sender, MouseEventArgs e)
control.ActiveTextAreaControl.TextArea.ShowHiddenCursor(forceShow: false);
}
}
-}
\ No newline at end of file
+}
diff --git a/Test/ICSharpCode.TextEditor.Tests.csproj b/Test/ICSharpCode.TextEditor.Tests.csproj
index 5ec99f3..ddf6037 100644
--- a/Test/ICSharpCode.TextEditor.Tests.csproj
+++ b/Test/ICSharpCode.TextEditor.Tests.csproj
@@ -3,7 +3,7 @@
Library
..\..\..\..\bin\UnitTests
- net9.0-windows
+ net10.0-windows
true