Can't Get Form Controls To RefreshJan 30, 2012
Been playing around with this and simply can't get it to work
I've got a form and I've created a button called refresh. The button is meant to do exactly that. What happens is that when the form loads, it checks the database for values. If it finds values, it creates a dynamic edit box related to the value.
I open the form and it paints accordingly and as I expect it. If I delete a value from the database then click the refresh button, it should re-draw the form and paint the background grey. The logic definitely works because I trapped the bit of code and it does hit the part where it's meant to set the background grey.
Now, I'm not sure I'm refreshing the form properly because all I'm doing within this sub is calling the form on load event: formLRQuadrantSchedule_Load(Me, New System.EventArgs)
This seems to work logic wise, just not doing what I want. So, I tried this (amongst several other things):
Dim dynTextBox As New TextBox()