Just have a simple question. I have a program and in it I have a label that displays results once you calculate them, and I want the label to clear once you change the text in the input boxes. Assuming the label is named like lblResult or something, how would I go about doing this?

有帮助吗?

解决方案

If you are using Windows Forms, you would handle the TextChanged event of your input box. In the event handler, you would then set your lblResult.Text = ""

If you are using WPF / XAML, the concept it the same, you'd just handle the event a little differently.

You can learn more about VB.NET and Event Handlers on MSDN.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top