.Net / C中的奇怪行为#??

编程入门 行业动态 更新时间:2024-10-27 22:19:17
本文介绍了.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>在消息中写道 新闻:OJ ************** @ TK2MSFTNGP11.phx.gbl ... "genc ymeri" <ge********@hotmail> 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>在消息中写道 新闻: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> 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中的奇怪行为#??

本文发布于:2023-10-14 11:33:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1490952.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:奇怪   Net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!