请问:如何忽略文本控件的输入,譬如说,我想忽略键入‘`’这个字符
解决方案 »
- 我的显示器是24寸宽屏的,我想把桌面分成2个部分,该怎么做?高手请进!
- 急,请教各位高手,钩子问题?
- delphi程序打包的问题,求救!
- 怎么在更新一个表后动态的更新另一个表
- 编译和运行的问题
- 如何让按钮的颜色变成透明色(100分只给一个人,解决就结贴)
- delphi 执行 jquery 代码错误
- Apache 安装完后,在IE中输入出http://localhost 显示 object not found! 怎么回事啊?
- 如何获取Imagelist的某一幅图片?
- 如何从c到delphi?
- 我现在需要像银行那样的打印存折的册子,不知道怎么打。
- 如何设置combobox的属性,使其只能通过下拉列表选择而不能键盘输入?(难为情的问题)
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
if Key = '`' then Key := #0;
end;
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
if Key = '`' then
begin
Key :=char(0);
exit;
end;
end;