Solved

Empty Message Box in VB .NET 2003

Posted on 2004-09-22
12
327 Views
Last Modified: 2012-06-27
When displaying a simple Message box with VB .NET 2003 I get an empty message box with no text and no text in the button.  The Title Bar does appear correct - Example

MessageBox.Show("Test","Title Test") produces a message box with "Title Test" in the title bar, no text in the box itself, and no text in what should be the OK button.  The OK button works and the message box goes away as it should.

I'm about 95% ceratin that this worked on the PC in question in the past.  XP SP2 was loaded on this PC, and I'm not certain that I have attempted a message box since.  Is this a known SP2 issue?  If someone has an answer and a link to the info it would be much appreciated.

Thanks in advance,

Steve
0
Comment
Question by:corwin_ranger
12 Comments
 

Author Comment

by:corwin_ranger
ID: 12128943
Anyone?
0
 
LVL 10

Expert Comment

by:123654789987
ID: 12130148
Try this

  MessageBox.Show("Test", "Title Test", _
           MessageBoxButtons.OK, MessageBoxIcon.Asterisk)
0
 
LVL 2

Expert Comment

by:ahmadfuwad
ID: 12130331
try this

 MsgBox("Write your message here", MsgBoxStyle.Information, "Title name")
0
 

Author Comment

by:corwin_ranger
ID: 12133074
OK.  This is NOT a problem with the code listed.  While all of the suggestions made are valid code, so is the example I provided.  To help clarify, I did some testing this morning - Here are the results -

I compiled a simple app that has one button control. When clicked the button's code simply displays a Message box.  After compiling, I ran the application on several PCs.

1.  Windows 2000 SP4 PC with .Net Framework 1.1 - Worked as expected.

2.  Windows XP SP2 PC with .NET Framework 1.1 and VS .NET 2003 environment - Blank Message Box.

3.  Windows XP SP2 PC with .NET Framework 1.1 - Blank

4.  Windows XP SP1 PC with .NET Framework 1.1 - Blank.

On PC #2 above, I was able to do a system restore to a time prior to SP2 being installed and the messagebox worked properly.  I'm guessing that there is an OS patch or some other update is causing the problem.  I undid the restore and then simply uninstalled SP2, yet still the message box did not display correctly.

Thanks,

Steve
0
 

Author Comment

by:corwin_ranger
ID: 12137779
OK,

So, I think I've solved the problem here.  It seems that the one thing that links all the PCs that have the problem is that they all have McAfee VirusScan Enterprise 8.0 (New Version) installed on them.  This was a recent update.   The problem went away as soon as the application was uninstalled.  I'll be working with the McAfee folks and as soon as I have more info, I'll post it.

Thanks,

Steve

P.S.  Can I award the points to myself?  LOL
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 12393677
PAQed, with points refunded (250)

Computer101
E-E Admin
0
 

Expert Comment

by:IngridK
ID: 12719383
It doesn't work even after installing SP4.
0
 

Expert Comment

by:electoralcommission
ID: 12782924
got the same problem myself - and we are also running the same virus scanner

only seems to be a problem on one machine, even though it has windows sp4 the same as other machines, and mcafee v8.0, same as other machines
0
 

Author Comment

by:corwin_ranger
ID: 12783072
After working with McAfee on this for quite a while, I've determined that the problem is the "Buffer Overflow" protection feature in the new 8.0 Product.  McAfee is working to solve the problem, but in the mean time, you can disable this feature and the problem goes away.
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 12830707
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now