Results 1 to 7 of 7

Thread: Automatisch opstarten in achtergrond

  1. #1

    Automatisch opstarten in achtergrond

    Hallo allemaal,

    Ik heb de volgende vraag:

    Ik wil mijn applicatie runnen, als windows wordt opgestart. Dit lukt allemaal wel, en dit doe ik door in de registry in de run van windows mijn programma te zetten. Dan heb ik erachter gezet: /background, maar toch komt het programma geopend op mijn scherm...

    Hoe los ik dit op???

    Alvast bedankt!

  2. #2
    Senior Member PsychoMark's Avatar
    Join Date
    Nov 2001
    Location
    Raamsdonksveer
    Posts
    10,269
    Zet in je DPR:



    Code:
    if FindCmdLineSwitch('background') then
      Application.ShowMainForm := False;

    ...kortom, als "/background" of "-background" als parameter wordt meegegeven zal het main form niet zichtbaar worden. Je kan dit zo uitgebreid maken wat je wilt, maar 't komt er op neer dat je specifiek support in de applicatie moet inbouwen voor die switch...
    Qui custodiet ipsos custodes

  3. #3
    ok, bedankt!
    Last edited by Tischnoetentoet; 23-Apr-03 at 16:51.

  4. #4
    wel even 'sysutils' in je uses toevoegen, is wel zo handig ;-)

  5. #5
    [offtopic]
    Naja, die staat er geloof ik standaard wel bij hr: SysUtils
    [/offtopic]

  6. #6
    Senior Member PsychoMark's Avatar
    Join Date
    Nov 2001
    Location
    Raamsdonksveer
    Posts
    10,269
    In je form ja, maar in de DPR staan alleen Forms en units die in het project zelf horen... dus inderdaad, vergeet SysUtils niet
    Qui custodiet ipsos custodes

  7. #7
    Sorry

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Computer automatisch opstarten
    By piet in forum Koffiehoek
    Replies: 19
    Last Post: 25-Feb-04, 14:09
  2. Image als Achtergrond
    By Johnnny1 in forum Algemeen
    Replies: 5
    Last Post: 23-May-03, 00:36
  3. Automatisch opstart bij windows opstarten
    By Tischnoetentoet in forum Algemeen
    Replies: 2
    Last Post: 16-Apr-03, 10:55
  4. Tekenen op een achtergrond
    By MaartenV in forum Algemeen
    Replies: 4
    Last Post: 11-Apr-03, 12:23
  5. Replies: 8
    Last Post: 04-Jul-02, 15:08

Bookmarks

Posting Permissions

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