I have changed my Form to inherit RadForm and everything seemed to be working fine, but I noticed that one of my Textboxes (later I realised all of them) were not getting populated with Data when I used this bit of Code:
pIsLoading is a public variable definate at the top of the form and is set to true.
I also have this bit of code:
So, as you can see, when the form is activated the Boolean is set to false, meaning that the ComboBox SelectedIndexChanged can run the rest of the code when the Index is changed :)
This works perfecting on my other forms that are not RadForms, but for RadForms the event is not even triggered.
Does anyone know why this is?
Private Sub ddlWorkCentre_SelectedIndexChanged_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ddlWorkCentre.SelectedIndexChanged |
If Not pIsLoading Then |
For Each pWorkCentre As WorkCentre In WorkCentresList |
If ddlWorkCentre.SelectedValue = pWorkCentre.ID Then |
txtWorkCentreDesc.Text = pWorkCentre.Description |
BindWorkOrders(pWorkCentre.ID) |
End If |
Next |
End If |
End Sub |
I also have this bit of code:
Private Sub frmWorkCentreLog_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Activated |
pIsLoading = False |
End Sub |
This works perfecting on my other forms that are not RadForms, but for RadForms the event is not even triggered.
Does anyone know why this is?