msgbox不显示提示文本 [英] msgbox doesn't display prompt text

查看:153
本文介绍了msgbox不显示提示文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚安装了Visual Studio .Net和Framework 1.1。我已经安装了VB6

SP6。


我想做一个快速的hello world VB.Net中的示例。代码在这里:


Private Sub Button1_Click(ByVal sender As System.Object,ByVal e As

System.EventArgs)处理Button1.Click

Dim s As String

Dim r As Long


s =" hello"

r = MsgBox(s ,MsgBoxStyle.OKCancel,一条消息)

End Sub


单击按钮时弹出msgbox,但该框为空,并且

按钮上没有文字(说好或取消),它们只是空的灰色

按钮。标题确实正确显示为消息。然后我运行了.Net安装附带的

Calc应用程序示例,当你尝试除以零时,它有一个msgbox

,它是消息框和按钮是空的




这似乎是一个错误,但我错过了什么? 1.1框架还没有服务

包。


任何帮助或知识都将受到赞赏。


z

I just installed Visual Studio .Net with Framework 1.1. I already had VB6
SP6 installed.

I wanted to do a quick "hello world" example in VB.Net. The code is here:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim s As String
Dim r As Long

s = "hello"
r = MsgBox(s, MsgBoxStyle.OKCancel, "a message")
End Sub

The msgbox pops up when you click the button, but the box is empty, and the
buttons have no text on them (saying OK or Cancel), they are just empty grey
buttons. The title does display correctly as "a message". I then ran the
Calc application sample that comes with the .Net install which has a msgbox
when you try to divide by zero, and it''s message box and buttons are empty
too.

This appears to be a bug, but am I missing something? There are no service
packs for the 1.1 framework yet.

Any help or knowledge would be appreciated.

z

推荐答案

" z" < z@z.z> schrieb:
"z" <z@z.z> schrieb:
我想做一个快速的你好世界。 VB.Net中的示例。代码在这里:

Private Sub Button1_Click(ByVal sender As System.Object,ByVal e As
System.EventArgs)处理Button1.Click
Dim s As String
Dim r As Long

s =" hello"
r = MsgBox(s,MsgBoxStyle.OKCancel," a message")
End Sub
<当你点击按钮时弹出msgbox,但是框是空的,
按钮上没有文字(说好或取消)
I wanted to do a quick "hello world" example in VB.Net. The code is here:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim s As String
Dim r As Long

s = "hello"
r = MsgBox(s, MsgBoxStyle.OKCancel, "a message")
End Sub

The msgbox pops up when you click the button, but the box is empty, and
the
buttons have no text on them (saying OK or Cancel)




也许您正在使用McAfee VirusScan。此产品的缓冲区有一个错误

溢出保护,NAI知道并且可以通过安装修复

a补丁:


McAfee VirusScan Enterprise 8.0i的补丁5

< URL:https://knowledgemap.nai.com/phpclient/viewKDoc.aspx?url = kb / kb_kb38717.xml& docType = DOC_KnowledgeBase>


-

MS Herfried K. Wagner

MVP< URL:http://dotnet.mvps.org/ >

VB< URL:http://dotnet.mvps.org/dotnet/faqs/>



Maybe you are using McAfee VirusScan. This product has a bug in its buffer
overflow protection that NAI is aware of and that can be fixed by installing
a patch:

Patch 5 for McAfee VirusScan Enterprise 8.0i
<URL:https://knowledgemap.nai.com/phpclient/viewKDoc.aspx?url=kb/kb_kb38717.xml&docType=DOC_KnowledgeBase>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


尝试使用MessageBox。显示(.....)方法。


克里斯

" z" < z@z.z>在消息新闻中写道:ul ************** @ TK2MSFTNGP11.phx.gbl ...
Try using MessageBox.Show(.....) method.

Chris
"z" <z@z.z> wrote in message news:ul**************@TK2MSFTNGP11.phx.gbl...
我刚刚使用Framework 1.1安装了Visual Studio .Net。我已经安装了VB6
SP6。

我想做一个快速的hello world。 VB.Net中的示例。代码在这里:

Private Sub Button1_Click(ByVal sender As System.Object,ByVal e As
System.EventArgs)处理Button1.Click
Dim s As String
Dim r As Long

s =" hello"
r = MsgBox(s,MsgBoxStyle.OKCancel," a message")
End Sub
<当你点击按钮时弹出msgbox,但是框是空的,
按钮上没有文字(说好或取消),它们只是空的
灰色
按钮。标题确实正确显示为消息。然后,当你尝试除以零时,我运行了.Net安装附带的
Calc应用程序示例,其中有一个msgbox
,它的消息框和按钮是空的<也是。

这似乎是一个错误,但我错过了什么? 1.1框架还没有
服务包。

任何帮助或知识都将不胜感激。

z
I just installed Visual Studio .Net with Framework 1.1. I already had VB6
SP6 installed.

I wanted to do a quick "hello world" example in VB.Net. The code is here:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim s As String
Dim r As Long

s = "hello"
r = MsgBox(s, MsgBoxStyle.OKCancel, "a message")
End Sub

The msgbox pops up when you click the button, but the box is empty, and
the
buttons have no text on them (saying OK or Cancel), they are just empty
grey
buttons. The title does display correctly as "a message". I then ran the
Calc application sample that comes with the .Net install which has a
msgbox
when you try to divide by zero, and it''s message box and buttons are empty
too.

This appears to be a bug, but am I missing something? There are no
service
packs for the 1.1 framework yet.

Any help or knowledge would be appreciated.

z



你好Z,


在.net中,请改用messagebox.show(" message)。 br />

Bernie Yaeger


" z" < z@z.z>在消息新闻中写道:ul ************** @ TK2MSFTNGP11.phx.gbl ...
Hi Z,

In .net, use messagebox.show("the message") instead.

Bernie Yaeger

"z" <z@z.z> wrote in message news:ul**************@TK2MSFTNGP11.phx.gbl...
我刚刚使用Framework 1.1安装了Visual Studio .Net。我已经安装了VB6
SP6。

我想做一个快速的hello world。 VB.Net中的示例。代码在这里:

Private Sub Button1_Click(ByVal sender As System.Object,ByVal e As
System.EventArgs)处理Button1.Click
Dim s As String
Dim r As Long

s =" hello"
r = MsgBox(s,MsgBoxStyle.OKCancel," a message")
End Sub
<当你点击按钮时弹出msgbox,但是框是空的,
按钮上没有文字(说好或取消),它们只是空的
灰色
按钮。标题确实正确显示为消息。然后,当你尝试除以零时,我运行了.Net安装附带的
Calc应用程序示例,其中有一个msgbox
,它的消息框和按钮是空的<也是。

这似乎是一个错误,但我错过了什么? 1.1框架还没有
服务包。

任何帮助或知识都将不胜感激。

z
I just installed Visual Studio .Net with Framework 1.1. I already had VB6
SP6 installed.

I wanted to do a quick "hello world" example in VB.Net. The code is here:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim s As String
Dim r As Long

s = "hello"
r = MsgBox(s, MsgBoxStyle.OKCancel, "a message")
End Sub

The msgbox pops up when you click the button, but the box is empty, and
the
buttons have no text on them (saying OK or Cancel), they are just empty
grey
buttons. The title does display correctly as "a message". I then ran the
Calc application sample that comes with the .Net install which has a
msgbox
when you try to divide by zero, and it''s message box and buttons are empty
too.

This appears to be a bug, but am I missing something? There are no
service
packs for the 1.1 framework yet.

Any help or knowledge would be appreciated.

z



这篇关于msgbox不显示提示文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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