错误说明:
cannot make a visible windows modal我是在一个form的button.click中想动态产生一个新的form2
procedure TForm1.N4Click(Sender: TObject);
var
ActiveForm:TActiveForm;begin
ActiveForm:=Tactiveform.Create(application);
ActiveForm.show;
end;
cannot make a visible windows modal我是在一个form的button.click中想动态产生一个新的form2
procedure TForm1.N4Click(Sender: TObject);
var
ActiveForm:TActiveForm;begin
ActiveForm:=Tactiveform.Create(application);
ActiveForm.show;
end;
解决方案 »
- DataSnap客户端用clientdataset执行insert语句,数据进去了,但提示cursor not returned from query
- 条条小路通厕所,散分贴
- 屏保程序有点问题,按照树上例子写的,没效果,大家看看怎么回事
- 我用DELPHI的写的界面能否被VB调用?
- 国庆节出去旅游心情特好~!散分~~~~~~~~~!斑竹手下留情
- 为指针分配空间之后,可不可以在不破坏数据的情况下,增加空间?怎样做?
- Delphi中的容器?
- MVCXE,新一代delphi web开发神器
- 谁能提供个用Delphi发送S/MIME邮件的例子(数字加密、签名)?
- delphi中如何在程序中得到当前所在的函数名?
- 如何编程实现数据库对象(表,存储过程等)的脚本描述?
- 怎样使stringgird的表头显示出来不动,浏览记录时还在最上面,我的不明白。
ActiveForm.Visible:=False;
ActiveForm.show;
你应该是调用ShowModal产生这个错误
搜索源代码如下
SCannotShowModal = 'Cannot make a visible window modal';function TCustomForm.ShowModal: Integer;
var
WindowList: Pointer;
SaveFocusCount: Integer;
SaveCursor: TCursor;
SaveCount: Integer;
ActiveWindow: HWnd;
begin
CancelDrag;
if Visible or not Enabled or (fsModal in FFormState) or
(FormStyle = fsMDIChild) then
raise EInvalidOperation.Create(SCannotShowModal);
//自己看看符合哪个条件就是了
...
end;
form.showmodal;