me.show()中的错误 [英] error in me.show()
问题描述
我似乎不能让我.Show()工作
我的代码是
dim dlgresult as dialogresul
dlgresult = me.show(
消息是:表达式不会产生值
但是,如果我起诉这个:dlgresult = Me.ShowDialog(),它有效。它只是我需要我的形式给我无模式
我错过了什么这里
谢谢:)
你好,
Me.Show()没有返回值,因为它无模式和执行
继续而不等待。
试试Me.Show(自己。
问候
Simon Jefferies
工具程序员,Headfirst Productions
mailto :si **** @ headfirst.co.uk
-
" ed" <一个******* @ discussions.microsoft.com>在消息中写道
新闻:0F ********************************** @ microsof t.com ...您好我无法让Me.Show()工作。
我的代码是:
> dim dlgresult as dialogresult
dlgresult = me.show()
消息是:表达式不会产生值
但是如果我起诉这个:dlgresult = Me.ShowDialog(),它的工作原理。只是我需要我的形式给我无模式。
我在这里缺少什么?
谢谢:)>
嗨Ed,
但如果我起诉这个:dlgresult = Me.ShowDialog(),它可以工作。
这是否有效,您在表单上创建的更多内容。
您再次将对象显示为对话框没有实例化一个新的?
告诉更多你想要的东西。
Cor
哦,我明白了。现在的问题是我需要返回一个值......以使其更清晰,这里是代码的其余部分:(抱歉没有显示这个早期
dim dlgresult as dialogresul
dlgresult = me.show(
select case dlgresul
Case DialogResult.Cance
-----正确代码她
案例DialogResult.Chang
-----正确代码她
Case DialogResult.Ignor
-----正确代码她
结束选择
正如你所说,Me.Show不会返回一个值,我怎样才能让我的代码在上面工作?有没有解决方法?谢谢:
你好
Me.Show()没有返回值这是因为它无模式和执行
继续而不等待
尝试Me.Show()自己
Regard
Simon Jefferie
工具程序员,Headfirst Production
mailto:si **** @ headfirst.co.u
" ED" <一个******* @ discussions.microsoft.com>在消息中写道
新闻:0F ********************************** @ microsof t.com ..嗨我似乎无法使Me.Show()工作我的代码是/ dim dlgresult as dialogresul
dlgresult = me.show(
消息是:表达式不会产生值
但如果我起诉这个:dlgresult = Me.ShowDialog(),它就可以了。它只是我
需要我的形式给我无模式我在这里缺少什么
谢谢:)
Hi I can''t seem to make the Me.Show() work
My code is
dim dlgresult as dialogresul
dlgresult=me.show(
The message is : "expression does not produce a value
But if I sue this: dlgresult=Me.ShowDialog(), it works. It''s just that I need my form to me modeless
What am I missing here
Thanks :)
Hello,
Me.Show() doesn''t return a value this is because its modeless and execution
continues without waiting.
Just try Me.Show() on its own.
Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:si****@headfirst.co.uk
-
"ed" <an*******@discussions.microsoft.com> wrote in message
news:0F**********************************@microsof t.com...Hi I can''t seem to make the Me.Show() work.
My code is:
dim dlgresult as dialogresult
dlgresult=me.show()
The message is : "expression does not produce a value"
But if I sue this: dlgresult=Me.ShowDialog(), it works. It''s just that I
need my form to me modeless.
What am I missing here?
Thanks :)
Hi Ed,
But if I sue this: dlgresult=Me.ShowDialog(), it works.
Does this works, what did you more on your form to create this.
You shows a form itself again as a dialog withouth instancing a new one?
Tell something more what you want to archieve.
Cor
Oh I see. The problem now is that i need to return a value....to make it clearer, here''s the rest of the code: (sorry for not showing this earlier
dim dlgresult as dialogresul
dlgresult=me.show(
select case dlgresul
Case DialogResult.Cance
-----right code her
Case DialogResult.Chang
-----right code her
Case DialogResult.Ignor
-----right code her
end selec
As you said, Me.Show doesnt return a value, how can i make my code above work? Is there a workaround? Thanks :
Hello
Me.Show() doesn''t return a value this is because its modeless and execution
continues without waiting
Just try Me.Show() on its own
Regard
Simon Jefferie
Tools Programmer, Headfirst Production
mailto:si****@headfirst.co.u
"ed" <an*******@discussions.microsoft.com> wrote in message
news:0F**********************************@microsof t.com..Hi I can''t seem to make the Me.Show() workMy code is
dim dlgresult as dialogresul
dlgresult=me.show(
The message is : "expression does not produce a value
But if I sue this: dlgresult=Me.ShowDialog(), it works. It''s just that I
need my form to me modelessWhat am I missing here
Thanks :)
这篇关于me.show()中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!