MsgBox Problem

  • Thread starter Thread starter Anne Richmond
  • Start date Start date
A

Anne Richmond

I have just returned to my first vb.net project after a few weeks and find I
have a problem with Msgbox.



The commands I added earlier work OK but any new ones fail to show the
prompt value or a narrative on the button.

So the line MsgBox ("Hello World",0,"My App") displays a box which does not
show "Hello World" and has a blank button (which should say "OK"). "My App"
and the close button are displayed.



In the time I have been away from this project a patches to fix the sasser
virus and various Microsoft updates have been applied.



What do I need to do to get this working again properly?
 
Anne Richmond said:
So the line
MsgBox ("Hello World",0,"My App")
displays a box which does not show "Hello World" and has a
blank button (which should say "OK").
"My App" and the close button are displayed.

Have you written your own MsgBox replacement class or method?
I ask mainly because I don't know of any way of getting the
"normal" MsgBox to show a blank button.

Also, VB.Net will usually give you members of the MsgBoxStyle
Enum to choose from - specifying 0 is quite unusual.

The code given above above works fine for me.

HTH,
Phill W.
 
No I haven't written a replacement.

replacing 0 with MsgBoxStyle.OKOnly still give the same result.

Also
MessageBox.Show("Hello World", "My App", MessageBoxButtons.OK,
MessageBoxIcon.Information)

produces a msgbox with a balnk button and no narrative.

Should I re-install vb.net?
 
Anne,

Last week were some problems reported after installing McAfee 8.0, that
sound exactly like your problem.

I hope this helps?

Cor
 
Can you point me to more info or a fix

Thanks
Cor Ligthert said:
Anne,

Last week were some problems reported after installing McAfee 8.0, that
sound exactly like your problem.

I hope this helps?

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top