Re: restart application
- From: Jamie <jamie_ka1lpa_not_valid_after_ka1lpa_@xxxxxxxxxxx>
- Date: Sat, 25 Nov 2006 17:12:14 -0500
Ingolf wrote:
<jimbo@xxxxxxxxxx> wrote in message news:1164362542.923132.96860@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxwhat if!
How can I on the click of a button "restart" my program. That is reset
all the defaults. Can a program close and reopen itself? Looked at
initialize but don't understand what it all means. TIA
Jim
procedure TForm1.Button1Click(Sender: TObject);
begin
winexec(PAnsiChar(paramstr(0)),SW_SHOWNORMAL);
halt(0);
end;
The app has code in it to prevent multiple copies?
--
"I'm never wrong, once i thought i was, but was mistaken"
Real Programmers Do things like this.
http://webpages.charter.net/jamie_5
.
- Follow-Ups:
- Re: restart application
- From: Rob Kennedy
- Re: restart application
- References:
- restart application
- From: jimbo
- Re: restart application
- From: Ingolf
- restart application
- Prev by Date: Re: menuitem bitmap problems
- Next by Date: Re: TimeSetEvent
- Previous by thread: Re: restart application
- Next by thread: Re: restart application
- Index(es):