Hello Expert !!!!
i want to handle the Matrix top position as well as Width on the Execution State.for this i have write Code ,but unfortunately it will not work properly for First time when i click on the menu to open the From. Actually it will give me Error for firts time and after that it will run smoothly.
Here is my Code..
Case BoEventTypes.et_FORM_RESIZE
If MM_Form Is Nothing Then Exit Sub
If pVal.BeforeAction = False Then
If MM_Form.State = BoFormStateEnum.fs_Restore Then
If pVal.FormUID.Trim().Equals("ABCP_ID") Then
mm_matrix = MM_Form.Items.Item("B_Matix").Specific ' when Form is loaded for first time it will give me Error Here ..... [ Item - Invalid item [66000-3]. Form Unique Id: 'ABCP_ID', Item Unique Id: 'B_Matix' ]
MM_Form.Items.Item("B_Matix").Top = 347
Dim MatrixWidth As Integer = MM_Form.Items.Item("prod_mat").Width
MM_Form.Items.Item("B_Matix").Width = MM_Form.Items.Item("prod_mat").Width
End If
End If
End If
Please help me out to Solve this problem i have tried a lot but didnot work fine..
Thanks
Sameer