MDI Parent / child form Vb.net
Posted on 2006-03-31
The code below works perfectly when applying it to a "normal" form. If i try to use the same code with a "child" form, it never loads the combobox. Basically i need to know if there is any difference when working with mdi parent and child and regular form. Why does the code work when using a regular form and not when it is a child form.
Dim rs As ADODB.Recordset
Dim MyArray As New ArrayList
Dim State As SigMap.net_Logic.Common
'On Error GoTo EH
rs = New ADODB.Recordset
State = New SigMap.net_Logic.Common
rs = State.GetStates
LoadCombobox(rs, MyArray, "description", "id")
CropCalcLoss.cmbCrop.DataSource = MyArray
CropCalcLoss.cmbCrop.DisplayMember = "description"
CropCalcLoss.cmbCrop.ValueMember = "id"
Err.Description = "LoadStates-> " & Err.Description
Err.Raise(Err.Number, Err.Source, Err.Description)