求一日期控件! MonthCalendarOnExit事件中加: MonthCalendar.Visible:=False; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 MonthCalendarOnExit事件中加: MonthCalendar.Visible:=False; MonthCalendarOnExit事件中加: MonthCalendar.Visible:=False; 在monthcalendar的onexit里monthcalendar.visible:=false; 在MonthCalendar1Click中加入下面的代码:procedure TForm1.MonthCalendar1Click(Sender: TObject);begin edit1.text :=datetostr(monthcalendar1.Date); edit1.setfocus; monthcalendar1.Visible:=false;end;如果你的是edit1而是label的话,就把焦点设在其他的可获取焦点的控件上如edit或button上就行了。如:procedure TForm1.MonthCalendar1Click(Sender: TObject);begin label1.caption:=datetostr(monthcalendar1.Date); button1.setfocus; monthcalendar1.Visible:=false;end; 请问如何在多选项卡(tabcontrol)控件中内嵌网页? 如何在运行时创建属性编辑器并使用? 焦头烂额,找人帮忙 调用ACCESS里的replace函数问题? 类函数作为回调函数可能吗 关于字符串函数 怎么输出label成bmp或者jpg 简体与繁体互换用啥函数啊? 急,refresh问题 关于硬盘保护的问题!还有为什么我的分总是零 怎样确定TMemo中每行字符的高度? @@@@@@@@@@@@@@@@@那位高手说说关于Yahoo Message那样嵌入IE中,成为一个菜单式样的工具板是如何实现的?(不是快速启动按钮)谢谢!@@@@
monthcalendar.visible:=false;
begin
edit1.text :=datetostr(monthcalendar1.Date);
edit1.setfocus;
monthcalendar1.Visible:=false;
end;如果你的是edit1而是label的话,就把焦点设在其他的可获取焦点的控件上如edit或button上就行了。如:
procedure TForm1.MonthCalendar1Click(Sender: TObject);
begin
label1.caption:=datetostr(monthcalendar1.Date);
button1.setfocus;
monthcalendar1.Visible:=false;
end;