By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,699 Members | 1,218 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,699 IT Pros & Developers. It's quick & easy.

MsgBox Problem

P: n/a
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?


Nov 21 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
"Anne Richmond" <an***********@bradford.gov.uk> wrote in message
news:f9********************@karoo.co.uk...
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.
Nov 21 '05 #2

P: n/a
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?

"Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote in message
news:ci**********@yarrow.open.ac.uk...
"Anne Richmond" <an***********@bradford.gov.uk> wrote in message
news:f9********************@karoo.co.uk...
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.

Nov 21 '05 #3

P: n/a
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?

"Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote in message
news:ci**********@yarrow.open.ac.uk...
"Anne Richmond" <an***********@bradford.gov.uk> wrote in message
news:f9********************@karoo.co.uk...
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.

Nov 21 '05 #4

P: n/a
Anne,

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

I hope this helps?

Cor

"Anne Richmond" <an***********@bradford.gov.uk>
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?

"Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote in message
news:ci**********@yarrow.open.ac.uk...
"Anne Richmond" <an***********@bradford.gov.uk> wrote in message
news:f9********************@karoo.co.uk...
> 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.


Nov 21 '05 #5

P: n/a
Anne,

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

I hope this helps?

Cor

"Anne Richmond" <an***********@bradford.gov.uk>
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?

"Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote in message
news:ci**********@yarrow.open.ac.uk...
"Anne Richmond" <an***********@bradford.gov.uk> wrote in message
news:f9********************@karoo.co.uk...
> 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.


Nov 21 '05 #6

P: n/a
Can you point me to more info or a fix

Thanks
"Cor Ligthert" <no************@planet.nl> wrote in message
news:Oe**************@tk2msftngp13.phx.gbl...
Anne,

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

I hope this helps?

Cor

"Anne Richmond" <an***********@bradford.gov.uk>
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?

"Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote in message
news:ci**********@yarrow.open.ac.uk...
"Anne Richmond" <an***********@bradford.gov.uk> wrote in message
news:f9********************@karoo.co.uk...
> 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.



Nov 21 '05 #7

P: n/a
Can you point me to more info or a fix

Thanks
"Cor Ligthert" <no************@planet.nl> wrote in message
news:Oe**************@tk2msftngp13.phx.gbl...
Anne,

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

I hope this helps?

Cor

"Anne Richmond" <an***********@bradford.gov.uk>
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?

"Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote in message
news:ci**********@yarrow.open.ac.uk...
"Anne Richmond" <an***********@bradford.gov.uk> wrote in message
news:f9********************@karoo.co.uk...
> 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.



Nov 21 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.