如何为 ContextMenuStrip 项目设置最大宽度,以便向下而不是横向自动调整大小?
代码:
Private Sub ListBox1_Click(sender As Object, e As EventArgs) Handles ListBox1.Click
ItemNameToolStripMenuItem.Text = ListBox1.SelectedItem
End Sub
如何为 ContextMenuStrip 项目设置最大宽度,以便向下而不是横向自动调整大小?
代码:
Private Sub ListBox1_Click(sender As Object, e As EventArgs) Handles ListBox1.Click
ItemNameToolStripMenuItem.Text = ListBox1.SelectedItem
End Sub