![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I hope someone can help me,
Is there a way to have the program check if it is on the foreground? I want to make a program which will open a 2nd program, once that 2nd program is finished/closed the focus should go back to my app and it needs to do something else. I have tried with Form1.Focus (= true) and Control("Form1").Focus = true But I cannot seem to get it working. I also thought i might be able to use a Textbox for the focusing part but that also didn't do anything. The workaround would be to have a MsgBox popup which the user needs to click.. but that would only be a last resort ... I could use some ![]() Thanks |
|
||||
|
See the ShellAndWait example: Shell and wait
It will make your application wait for the second application to end. If I remember correctly your application will be brought to the foreground. There are other solutions available, so please reply if it didn't help. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Check for duplicates | moster67 | Questions & Help Needed | 2 | 09-07-2008 07:58 AM |
| automatically send a csv file via active-sync | sunnyboyj | Questions & Help Needed | 3 | 12-22-2007 02:35 PM |
| Another newbie question: How to refere to the active form? | yildi | Questions & Help Needed | 2 | 11-17-2007 08:55 PM |
| Check for Sub existance | Scubaticus | Questions & Help Needed | 4 | 11-04-2007 10:54 PM |
| How to detect whether SIP is active / not? | belotrei | Questions & Help Needed | 5 | 06-01-2007 05:22 PM |