Changing Label Text at Runtime
Posted on 2004-10-12
I am going nuts trying to figure this out.
All I want to do is when I click a button on my form (which executes a SQL query), change a label text on my form to read "Please wait while the query executes..."
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.Button1.Text = "Please wait while the query executes..."
(Do SQL Stuff)
The label is not changing. I have tried to remove the default label text (which I would then set at Form Load) and this doesn't help.
Why do basic things need to be so hard sometimes???