Solved

Empty Message Box in VB .NET 2003

Posted on 2004-09-22
12
328 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
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

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
 
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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

803 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