.Net / C中的奇怪行为#?? [英] strange behavior in .Net/C# ??
问题描述
我注意到在尝试运行此代码时:
MessageBox.Show(" Hello");
弹出消息框,但不显示任何字符串/消息。 (期待
" Hello" string)。即使是OK也是如此。对话框中按钮本身的字符串
没有显示。
我试着写Hello按钮的标题/文本中的字符串或
表格文本itslef
this.text =" hello"
但没有任何变化。
我是从外地运行的(不是来自MS Studio IDE)并且它做同样的事情。
我没有安装并安装了.Net 1.1框架,但问题出现了
并随机消失.... ......
可能是其他东西可能无法正常工作,我只是不能注意到它们所有的b $ b,但这很明显。
有什么想法吗?
Hi,
I just noticed that while trying to run this code :
MessageBox.Show("Hello");
the message box pops up but shows no string/message in it. (expecting the
"Hello" string). Even the "OK" string in the button itself in dialog box
doesn''t show.
I tried to write "Hello" string in the caption/text of the button or the
form text itslef
this.text = "hello"
but nothing changes.
I ran it from "outsite" (not from MS Studio IDE) and it does the same thing.
I unistalled and installed the .Net 1.1 Framework but the problem appears
and disappears randomly.......
It may be others thing they may not work properly, I just can''t notice all
of them but this was obvious.
Any idea ?
推荐答案
" genc ymeri" < GE ******** @ hotmail.com>在消息中写道
新闻:OJ ************** @ TK2MSFTNGP11.phx.gbl ...
"genc ymeri" <ge********@hotmail.com> wrote in message
news:OJ**************@TK2MSFTNGP11.phx.gbl...
>我刚刚注意到在尝试运行此代码时:
MessageBox.Show(" Hello");
弹出消息框,但不显示任何字符串/消息它。 (期待
Hello字符串)。即使是OK也是如此。对话框中按钮本身的字符串
不显示。
Hi,
I just noticed that while trying to run this code :
MessageBox.Show("Hello");
the message box pops up but shows no string/message in it. (expecting the
"Hello" string). Even the "OK" string in the button itself in dialog box
doesn''t show.
需要更多信息。
MessageBox.Show
(" Hello",Goodbye,MessageBoxButtons.OK,MessageBox Icon.Information);
It needs a little bit more info.
MessageBox.Show
("Hello","Goodbye",MessageBoxButtons.OK,MessageBox Icon.Information);
Martin Stainsby <去*********** @ alreadythank.you>在留言中写道
news:u3 ************** @ TK2MSFTNGP10.phx.gbl ...
"Martin Stainsby" <go***********@alreadythank.you> wrote in message
news:u3**************@TK2MSFTNGP10.phx.gbl...
它需要更多信息。
MessageBox.Show
(" Hello",Goodbye,MessageBoxButtons.OK,MessageBox Icon.Information);
It needs a little bit more info.
MessageBox.Show
("Hello","Goodbye",MessageBoxButtons.OK,MessageBox Icon.Information);
这是最小的,但在语法和逻辑上都是正确的。 OP应该是
得到一个带有Hello的对话框。作为消息和其他一切违约。
-
彼得[MVP视觉开发者]
所有行业的杰克,大师没有。
It''s minimal, but syntactically and logically correct. The OP should be
getting a dialog with "Hello" as the message and everything else defaulted.
--
Peter [MVP Visual Developer]
Jack of all trades, master of none.
这很奇怪。您正在正确调用MessageBox.Show。似乎
就像.NET框架中的某种字符串资源问题一样。
这个在一个简单的项目中重现吗?你是在一个单独的线程上运行
来自主应用程序线程吗?
Tom Clement
Apptero,Inc。
" genc ymeri" < GE ******** @ hotmail.com>在消息中写道
新闻:OJ ************** @ TK2MSFTNGP11.phx.gbl ...
This is very weird. You are calling MessageBox.Show properly. It seems
like some sort of string resource problem inside the .NET framework. Does
this reproduce in a simple project? Are you running on a separate thread
from the main application thread?
Tom Clement
Apptero, Inc.
"genc ymeri" <ge********@hotmail.com> wrote in message
news:OJ**************@TK2MSFTNGP11.phx.gbl...
>我刚刚注意到在尝试运行此代码时:
MessageBox.Show(" Hello");
弹出消息框,但不显示任何字符串/消息它。 (期待
Hello字符串)。即使是OK也是如此。对话框中按钮本身的字符串
没有显示。
我试着写你好。按钮的标题/文本中的字符串或
表单文本其它
this.text =" hello"
但没有任何变化。
我从outsite中运行它(不是来自MS Studio IDE)并且它做同样的事情。
我unistalled并安装了.Net 1.1框架,但问题出现了
并随机消失.......
可能是其他东西可能无法正常工作,我只是不能注意到它们的全部,但这很明显。
任何想法?
Hi,
I just noticed that while trying to run this code :
MessageBox.Show("Hello");
the message box pops up but shows no string/message in it. (expecting the
"Hello" string). Even the "OK" string in the button itself in dialog box
doesn''t show.
I tried to write "Hello" string in the caption/text of the button or the
form text itslef
this.text = "hello"
but nothing changes.
I ran it from "outsite" (not from MS Studio IDE) and it does the same
thing.
I unistalled and installed the .Net 1.1 Framework but the problem appears
and disappears randomly.......
It may be others thing they may not work properly, I just can''t notice all
of them but this was obvious.
Any idea ?
这篇关于.Net / C中的奇怪行为#??的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!