Hello guys, I am new to vb programming. Can anyone tell me how to access command button of one form onto another?

I have one mdiParent form on which i have command button "PRINT" and "Add New Client", I want to disable Print button, when i clicked on "Add New Client Button".
Thanks in advance!!!

mdiParent.cmdPrint.disable -- specify the form.

Hi,

Write this in "Add New" event:

MDIParent.cmdPrint.Enable = False

Later on dont forget to Enable it...

Regards
Veena

Hi,

Write this in "Add New" event:

MDIParent.cmdPrint.Enable = False

Later on dont forget to Enable it...

Regards
Veena

Veena and WaltP you guys are awesome. That code worked well for me. Thanks so much guys!!!!