During my form_load event I create a series of progressbars and labels for each server listed in a XML file. I figured out how to change the text property of the label controls using:
That code works fine; it finds the correct label control and updates the text property. I have tried the same code for my progressbars except using control.value to update the progress bar value and i get " 'value' is not a member of 'System.Windows.Forms.Control' ". Does anyone know how i can access the value property of a control in this situation?
VB.NET:
For Each control In gbServerNames.Controls
'Check control name to update correct label
controlname = "lblServer" + serverarray(x)
'Updates total count label to reflect select statement.
If control.Name = controlname.ToString Then
control.Text = TEMPcount
End If
Next control
That code works fine; it finds the correct label control and updates the text property. I have tried the same code for my progressbars except using control.value to update the progress bar value and i get " 'value' is not a member of 'System.Windows.Forms.Control' ". Does anyone know how i can access the value property of a control in this situation?