i want to cast a string to ToolStripMenuItem in vb.net using DirectCast function.my code is
Dim ParentMenu As ToolStripMenuItem = DirectCast(ComboBox1.SelectedItem, ToolStripMenuItem)
but it raise the following error--- Unable to cast object of type 'System.String' to type 'System.Windows.Forms.ToolStripMenuItem'. please,answer me.