Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Interform Communication

I need to run a menu option from Form1 that actualy executes a menu option on Form2. What I have had to do is show Form2 and use SendKey to get to an options update. I do not like the fact that Form2 displays while this process is occuring. There is no way, because of the tables opened in Form2 that I can peform the operation from Form1.

Try putting an invisible text box on the window you want to trigger. Whenever you put a piece of text in the text box, the Change event will fire, and you can interpret the message. It is a poor man's message handler. One thing to remember if you do this: make sure you clear the text box after you get the message. Otherwise, if you put the same text in, the change event will not fire.

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date