我已经链接到一个非常基本的天气网络服务,我试图在 lbl 中显示结果,但它不起作用。当我在消息框中显示结果时,它工作正常。注释行有效,但标签无效
Private Sub btnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearch.Click
Dim var As String = txtCityString.Text
lblResult.Text(weatherClient.GetWeather(var))
'MessageBox.Show(weatherClient.GetWeather(var))
End Sub