Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


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

Interform Communication

Question:
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.

Answer:
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.

 

 

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