If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > apply system Registry changes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-03-05, 16:18
wazeerriaz wazeerriaz is offline
Registered User
 
Join Date: Feb 2005
Posts: 2
apply system Registry changes

when I use this code to change my Local it changes in setting but its not applying. what should I do?

procedure TForm1.Button1Click(Sender: TObject);
var reg:TRegistry;
begin
reg:=TRegistry.Create;
with reg do begin
try
if OpenKey('\Control Panel\International', False) then begin

reg.WriteString ('Locale','00000401');

SystemParametersInfo
(SPI_SETDEFAULTINPUTLANG,0, nil,SPIF_SENDWININICHANGE);
end
finally
reg.free
end;
end;
End;
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On