CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: RunOnce

  1. #1
    Join Date
    Nov 1999
    Posts
    16

    RunOnce

    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


  2. #2
    Guest

    Re: RunOnce

    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


  3. #3
    Join Date
    Nov 1999
    Posts
    16

    Re: RunOnce

    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


  4. #4
    Guest

    Re: RunOnce

    send me your E-Mail address to [email protected]. 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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured