diff --git a/minisqlquery-master/src/MiniSqlQuery/MainForm.cs b/minisqlquery-master/src/MiniSqlQuery/MainForm.cs
index 0cdb7ae..69e7065 100644
--- a/minisqlquery-master/src/MiniSqlQuery/MainForm.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/MainForm.cs
@@ -174,10 +174,10 @@ namespace MiniSqlQuery
public ToolStripMenuItem GetMenuItem(string name)
{
ToolStripMenuItem menuItem = null;
-
+ //zhenggc 2023-11-28 modify
foreach (ToolStripMenuItem item in MainMenuStrip.Items)
{
- if (item.Text.Replace("&", string.Empty).ToLower() == name.ToLower())
+ if (item.Name.Replace("&", string.Empty).ToLower() == name.ToLower())
{
menuItem = item;
break;