954,551 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to Access Command Button of One Form onto Another??

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!!!

Amiet Mhaske
Newbie Poster
19 posts since Nov 2011
Reputation Points: 6
Solved Threads: 0
Infraction Points: 5
 

mdiParent.cmdPrint.disable -- specify the form.

WaltP
Posting Sage w/ dash of thyme
Moderator
10,507 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
 

Hi,

Write this in "Add New" event:

MDIParent.cmdPrint.Enable = False

Later on dont forget to Enable it...

Regards
Veena

QVeen72
Posting Shark
950 posts since Nov 2006
Reputation Points: 84
Solved Threads: 143
 

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!!!!

Amiet Mhaske
Newbie Poster
19 posts since Nov 2011
Reputation Points: 6
Solved Threads: 0
Infraction Points: 5
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: