I am unable to set the focus on mentioned code with the following. Is there any error in this code ?
Please help
Code:
MasterId = fgData.TextMatrix(fgData.Row, 3)
AccountType = fgData.TextMatrix(fgData.Row, 2)
frmCashReceipt.txtName.Text = fgData.TextMatrix(fgData.Row, 1)
Call GetAddress(MasterId)
frmCashReceipt.txtAddress.Text = PartyAddress
frmCashReceipt.txtName.SetFocus