我有代码将dropdownlist中的值附加到文本框中。但我不确定为什么这不会在文本框中显示任何类型的文本。
Try
' Add the selected text to the end of the text already in txtExpression textbox
txtExpression.AppendText(cboOpenParen.SelectedText)
Catch ex As Exception
Finally
End Try
答案 0 :(得分:0)
您不应该使用.SelectedText
财产......
使用.Text
属性....
代码:
Try
' Add the selected text to the end of the text already in txtExpression textbox
txtExpression.AppendText(cboOpenParen.Text)
Catch ex As Exception
Finally
End Try