Invoking a form from two different forms

0

I have a form FRMBuscarCliente , which I invoke from two different forms FrmConsultarEstado and FrmRegistroExpediente .

From the form FrmConsultarEstado have a button that brings me to the FRMBuscarCliente where I am looking for a customer and when I find I click and code and document number leads to a textbox FrmConsultarEstado .

In the same way I want to do with the form FrmRegistroExpediente ; but I want to use the same form FRMBuscarCliente . How to make the FRMBuscarCliente know which destination form will carry the information?

    
asked by PieroDev 16.02.2017 в 00:03
source

1 answer

1

Create a property in the form FRMBuscarCliente and then before calling this form assign the form that is invoking it. With this you will have the reference to the form that is calling you and you can assign values to the parent form.

FRMBuscarCliente.Padre = Me // FrmConsultarEstado y FrmRegistroExpediente
FRMBuscarCliente.Show()
    
answered by 16.02.2017 в 00:44