标签: vb.net visual-studio-2010 visual-studio
如何设置ContextMenuStrip项目的最大宽度,因此要向下自动调整大小而不是跨越?
代码:
Private Sub ListBox1_Click(sender As Object, e As EventArgs) Handles ListBox1.Click ItemNameToolStripMenuItem.Text = ListBox1.SelectedItem End Sub