Please give me the answer!!

dycdyc123 2001-08-26 04:28:05
I have a Form1 which has a Panel1 (property: Align is Client and has Image1)
Form1 has a popmenu1
Now I want show a Form2 and Form3;
My Code is following:
Btn1Click(...)
{
Form2->ShowModal();
....
}

BtnClick(..)
{
Form3->Show();
...
}
But the Form3 is visible!!! I want use the Form2 to input the data,
and use the Form3 to display the state!!!
~~~~~~~
Please help me!!!

Thanks!!
...全文
95 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
ploto 2001-08-27
  • 打赏
  • 举报
回复
如果那两行语句是在同一函数中的话。在Form2->ShowModal()没有结束前,即Form2没有被关闭时,Form3->Show()是不会被执行到的,当然显示不出来了呀。解决方法是两语句交换一下,
wjzhuang 2001-08-26
  • 打赏
  • 举报
回复
dycdyc123是女孩?
真的?
呵呵~~~~~,bcb有多了一个女孩了


如果试事先建立的form,可以用Show()
如果不是,要这样
Form3 = new TForm3(this);
Form3->ShowModal();
delete Form3;

Form3 = new TForm3(Application);
Form3->ShowModal();
delete Form3;
whitelion 2001-08-26
  • 打赏
  • 举报
回复
up
xycleo 2001-08-26
  • 打赏
  • 举报
回复
dycdyc123是女孩!!!是啊1!贴出来看看1!
aningstar 2001-08-26
  • 打赏
  • 举报
回复
老兄,你把完整代码贴出來看看

根据你的意思,我感觉有些不对头
dycdyc123 2001-08-26
  • 打赏
  • 举报
回复
Yes!
Form2->ShowModal();

;;


Form3->Show();


sundayboys 2001-08-26
  • 打赏
  • 举报
回复
Form3是什么类型窗口?模态的还是非模态的?你的form2用的是showmodal,form3用的是show?

13,826

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧