在“模态”中打开新表单样式... [英] Open new form in "modal" style...

查看:50
本文介绍了在“模态”中打开新表单样式...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好:


昨天我把关于如何打开新表格的查询发表了这篇文章

inmodal风格。


我用以下方式调用表格:


dim frm as form2()

frm = new form2()

frm.show


我应该在哪里以及如何提及在模态中打开表单sytle。


谢谢!


SENDER(记住我......)

Hello all:

Yesterday I put this post regarding the query as to how to open a new form
in "modal" style.

I am calling the form in the following way:

dim frm as form2()
frm = new form2()
frm.show

Where and how should I mention to open form in "modal" sytle.

Thanks!

SENDER (Remember me...)

推荐答案

frm.showDialog

" I_AM_DON_AND_YOU?" <我们** @ domain.com>在消息中写道

新闻:eR ************** @ tk2msftngp13.phx.gbl ...
frm.showDialog
"I_AM_DON_AND_YOU?" <us**@domain.com> wrote in message
news:eR**************@tk2msftngp13.phx.gbl...
大家好:

昨天我把关于如何在模态中打开一个新表格的查询发表这篇文章。风格。

我用以下方式调用表单:

dim frm as form2()
frm = new form2()
frm。 show

我应该在何处以及如何提及在模态中打开表单sytle。

谢谢!

SENDER(记住我......)
Hello all:

Yesterday I put this post regarding the query as to how to open a new form
in "modal" style.

I am calling the form in the following way:

dim frm as form2()
frm = new form2()
frm.show

Where and how should I mention to open form in "modal" sytle.

Thanks!

SENDER (Remember me...)



嗨唐,


frm.ShowDialog()


注意,如果您的表单上有任何按钮并且您设置了对话框结果

属性,然后这些按钮将自动关闭表单并返回

ShowDialog方法中的DialogResult属性值:


Dim drResult As DialogResult = frm.ShowDialog()


如果drResult = DialogResult.OK那么

...

Else

...

结束如果


-

HTH,

- Tom Spink,überGeek


请回复新闻组,

所以所有人都可以受益


" ; System.Reflection Master"


====转换为2002 ====

删除内联声明

" I_AM_DON_AND_YOU"?; <我们** @ domain.com>在消息中写道

新闻:eR ************** @ tk2msftngp13.phx.gbl ...
Hi Don,

frm.ShowDialog()

Note, if you have any buttons on your form and you set the dialog result
property, then those buttons will automatically close the form and return
the DialogResult property value in the ShowDialog method:

Dim drResult As DialogResult = frm.ShowDialog()

If drResult = DialogResult.OK Then
...
Else
...
End If

--
HTH,
-- Tom Spink, über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations
"I_AM_DON_AND_YOU?" <us**@domain.com> wrote in message
news:eR**************@tk2msftngp13.phx.gbl...
大家好:

昨天我把关于如何在模态中打开一个新表格的查询发表这篇文章。风格。

我用以下方式调用表单:

dim frm as form2()
frm = new form2()
frm。 show

我应该在何处以及如何提及在模态中打开表单sytle。

谢谢!

SENDER(记住我......)
Hello all:

Yesterday I put this post regarding the query as to how to open a new form
in "modal" style.

I am calling the form in the following way:

dim frm as form2()
frm = new form2()
frm.show

Where and how should I mention to open form in "modal" sytle.

Thanks!

SENDER (Remember me...)



*CJ Taylor <无**** @ blowgoats.com> scripsit:
* "CJ Taylor" <no****@blowgoats.com> scripsit:
frm.showDialog
frm.showDialog



''showDialog''...我们不使用Java ......
< br $> b $ b -

Herfried K. Wagner

MVP·VB Classic,VB.NET

< http:/ /www.mvps.org/dotnet>



''showDialog''... we are not using Java...

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>


这篇关于在“模态”中打开新表单样式...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆