Here i am working with migrating vb6.0 application into vb.net. Here i have written code like this
Private Sub RichTextBox1_Enter(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles rtbChart.Enter
If Combobox1.Text <> "XXXX" Then
Toolbar1.Visible =
True
If Len(RichTextBox1.Text) Then Toolbar1.Items.Item(0).DisplayStyle = System.Windows.Forms.ToolBarButtonStyle.DropDownButton
End If
End Sub
Here in above code when i am running the dotnet code i am getting the error like this
"The value of argument 'Value'(4) is invalid for enum type 'toolstripitmeDisplaystyle'.
Parameter Name :value"
Here how can i rectify this error. Please give clear information it is very Urgent.
thanks
vsbabu.