Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ER - only allow the app to run once
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00688594
Message ID:
00688929
Views:
31
How about CreateEvent() (Ed Rauh's approach?) Just few lines of code...

>Hi Paul,
>
>>I decided to maximize it thinking that they may have goofed up the window position or something weird. I want them to be able to find my app ;-)
>
>So we need another property in cApp: nMultiInstanceMode (or whatever it should be called) = {0|1|2}. 0 = Allow multiple instances, 1 = Only one instance - Restore window of first instance, 2 = Only one instance - Maximize window of first instance.
>
>>OK, I just tested it and it (appears) to work. I added a property called cAppID to goApp; this stores my applications unique name. My new code looks like:
>
>Cool :) Thanks!
>
>Now we have to wait for Kevin to say that he's going to implement this ;-) OTOH, if he won't, this is something that could easily be put in a subclass of cApp.
>
>Armin
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform