求助:想在TEDIT输入内容后,回车就运行一段程序,该怎么控制? 大家帮忙啊!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);begin if(Key = #13) then ShowMessage('here');end; procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);begin if(Key = #13) then begin //your code end;end; procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);begin if(Key = #13) then 你的程序;end; procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);begin if(Key = #13) then //To do your code end; procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);begin if(Key = #13) then begin ........... end end注意这时候你的光标应该是在edit控件里才有效! procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);begin if(Key = #13) then begin //your code end;end; procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);begin if(Key = #13) then begin winexec('start abc.txt'); end;end; delphi 的 button文字运行时鼠标经过文字会变化是怎么回事? 请高手帮我分析一下这段代码!在线等待! 是否需要2005年最新的marc数据?(有关图书馆管理的) 初学者的简单问题 Delphi6专业版没法在WinXP以非管理员身份安装,如何解决,个人版可以么? 请教!UML的问题高手》》》》 怎样在已有的表中添加一个字段?急 dirextX 函数调用的问题? delphi 串口通信 怎样在Delphi中修改SQL2000中的用户密码? 【100分求文件数据库问题】 把bmp文件保存到sql中,出错!!!why?
begin
if(Key = #13) then
ShowMessage('here');
end;
begin
if(Key = #13) then
begin
//your code
end;
end;
begin
if(Key = #13) then
你的程序;
end;
begin
if(Key = #13) then
//To do your code
end;
begin
if(Key = #13) then
begin
...........
end
end
注意这时候你的光标应该是在edit控件里才有效!
begin
if(Key = #13) then
begin
//your code
end;
end;
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
if(Key = #13) then
begin
winexec('start abc.txt');
end;
end;