473,404 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

MsgBox Problem

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
7 1782
"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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: js | last post by:
Hi all, I currently encounter a problem and it is urgent to me. After calling the MsgBox.Show(), the message box is shown with non-modal mode, what is the possible reason??? This only happen...
4
by: Lakrom | last post by:
Hi to all, how to put msgbox in this asp page, this send me a message Denied permission: 'MsgBox' <% Set Conn=server.createobject("ADODB.connection") Conn.open application("StrConRuta") set rs =...
6
by: Lapchien | last post by:
In this bit of code provided so helpfully by Nath: Private Sub Command118_Click() Dim rs As DAO.Recordset Set db = CurrentDb Set rs = db.openrecordset("IMPORT")
0
by: CFW | last post by:
I use the below code to move to the selected record in a list box to that record in another form: DoCmd.OpenForm "frmWorksheet", acNormal, , , acFormEdit, acWindowNormal rst.CursorLocation =...
4
by: | last post by:
I have about 20 MsgBox occurance in by program, which I use to inform the user of the progress of the program, or ask confirmation of an action, or simply to act separators to various parts of the...
7
by: Bob L | last post by:
I've inserted a MsgBox in some VBScript on line 12 of an .asp page and get the following error: Microsoft VBScript runtime error '800a0046' Permission denied: 'MsgBox' /default.asp, line 12 ...
9
by: Ivan Jericevich | last post by:
In my code below at the line 'response' a blip sound is heard and the program exits the sub -- No MsgBox is displayed. What am I doing wrong? If nonNumberEntered = True Then msg = "Enter...
2
by: perkykoala | last post by:
I apologize in advance for being REALLY detailed/verbose. It's the result of staring/tweaking code for too long. Using VB 2005: I need to design a multiple choice test (unfortunately, I can't...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.