主题:有个问题 望达人指教一下
heatfighter
[专家分:10] 发布于 2006-04-20 09:11:00
我新建了新工程 ,form1 然后我在打开file new form 增加了一个FORM2
把它的属性改成VISIBLE :=TRUE 在按F9 他就显示了
我想弄明白的是FORM2 的SHOW 是在什么时候增加的 在我FILE NEW FORM 的时候 他就SHOW 了 只是没有默认的VISIBLE 是FALSE 我才看不到他的吗??
那我能不能不让他SHOW
回复列表 (共2个回复)
沙发
heatfighter [专家分:10] 发布于 2006-04-20 09:20:00
去试了一下 发现用代码show 和 VISIBLE:=TRUE 和SHOWMODEL 的都能显示窗体。。。。 这几个有什么区别。。我知道SHOW 和SHOWMODEL的大概区别
板凳
christ115 [专家分:1580] 发布于 2006-04-20 13:02:00
show和visible := true作用一样,是一般的显示窗口
Description
Use Show to set the form’s Visible property to true and to bring the form to the front of other forms on the screen.
ShowModal是以模态的形式显示窗口,此窗口关闭之后,application才能继续运行。
Description
Use ShowModal to show a form as a modal form. A modal form is one where the application can’t continue to run until the form is closed. Thus, ShowModal does not return until the form closes. When the form closes, it returns the value of the ModalResult property.
我来回复