Dosen adalah pendidik profesional dan ilmuwan dengan tugas utama mentransformasikan, mengembangkan, dan menyebarluaskan ilmu pengetahuan, teknologi melalui pendidikan, penelitian, dan pengabdian kepada masyarakat (Permendikbud 49/2014 Pasal 1:14)

Rabu, 09 Juli 2008

Mencegah Alt+F4

public

procedure AppMessage(var Msg: TMSG; var HAndled: Boolean);
end;
{...}
implementation
{...}

procedure TForm1.FormCreate(Sender: TObject);
begin
Application.OnMessage := AppMessage;
end;

procedure TForm1.AppMessage(var Msg: TMSG; var Handled: Boolean);
begin
Handled := False;
case Msg.Message of
WM_SYSKEYDOWN:
if Msg.wParam = VK_F4 then
Handled := True; // don't allow ALT-F4
end;
end;

1 komentar :

  1. I was advised a good assistant, I can say that this site https://www.clevescene.com/sponsored/the-best-essay-writing-service-2022-independent-review-39279903 is the best, where any written work is written, written with meaning, the best essay writing service 2022, an independent review

    BalasHapus

Terima kasih atas kunjungan dan komentarnya