Click to See Complete Forum and Search --> : RunOnce


Ashley Winters
November 15th, 1999, 04:48 PM
Hi,

Is there a way I could run my application (written in VB) to run after the User Logon is complete? I tried using RunOnce, but the application runs before the logon is complete and I have seen articles talking about the same. Any help would be appreciated.

Thanks,
Ashley

November 15th, 1999, 06:26 PM
I'm sorry if I did not understand what you want. I have such a scenario:
When my program starts, the main form reads from registry. If there is nothing (program never ran on this computer) then the form with controls for initial settings (User Name, Company data, location of database, password and so on) is displayed. This form writes to the registry. After that the program runs. Next time the main form will find these data in a registry and the second form will not be displayed anymore. I have a class to read from and write to the registry, so everything I described is not too complicated.
Vlad

Ashley Winters
November 15th, 1999, 07:01 PM
Hi,

I think you have covered pretty much what I am looking for. In our case it is a simple EXE which just registers some DCOM Server Executables. We require this to run on the system which has never run this program before before. But if I put the entry in the registry under
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\RunOnce]
the program runs immediately before the user logon is complete, which is causing some problems. I want this program to run after the user logon is complete and we are able to see the Start Menu, system trays etc.

Could you give me a pointer on how to go about it?

Thanks
Ashley

November 16th, 1999, 08:44 AM
send me your E-Mail address to chapran@earthlink.net. Although I'm preety busy now I will be able to send you several files and if you will have some problem with uderstanding how I did you'll ask me.
Vlad