Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / December 2004

Tip: Looking for answers? Try searching our database.

What is wrong with this line of code?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rollasoc - 15 Dec 2004 17:28 GMT
MessageBox.Show("Hello", "Boo", MessageBoxButtons.OK,
MessageBoxIcon.Information);

Why when it runs, does the word "Hello" not be displayed in the message box
and the message box display a blank button and not one that says "OK".
"Boo" does appear in the Title bar.

This is doing my head in...

Rollasoc
Peter Jausovec - 15 Dec 2004 17:35 GMT
Hi,

It should be working ok.. are you doing something with Localization ?

Signature

Regards,
Peter Jausovec
(http://blog.jausovec.net)

> MessageBox.Show("Hello", "Boo", MessageBoxButtons.OK,
> MessageBoxIcon.Information);
[quoted text clipped - 7 lines]
>
> Rollasoc
Rollasoc - 15 Dec 2004 17:45 GMT
Nope.  It is very weird.  Messageboxes work fine in my other apps.  Just not
this new one....

> Hi,
>
[quoted text clipped - 11 lines]
> >
> > Rollasoc
Peter Jausovec - 15 Dec 2004 17:48 GMT
Very weird in deed ... maybe some of the MVP's will know something :)

Signature

Regards,
Peter Jausovec
(http://blog.jausovec.net)

> Nope.  It is very weird.  Messageboxes work fine in my other apps.  Just
> not
[quoted text clipped - 15 lines]
>> >
>> > Rollasoc
Mick Doherty - 15 Dec 2004 18:15 GMT
Turn off buffer overrun protection for McAfee VirusScan 8.

Does this help?

Signature

Mick Doherty
http://dotnetrix.co.uk/nothing.html

> MessageBox.Show("Hello", "Boo", MessageBoxButtons.OK,
> MessageBoxIcon.Information);
[quoted text clipped - 7 lines]
>
> Rollasoc
Rollasoc - 16 Dec 2004 09:37 GMT
I'm using Mcafee.    I'll get IT to look into it.

Thanks for everyone's help.  Have a good Christmas.

Rollasoc

> Turn off buffer overrun protection for McAfee VirusScan 8.
>
[quoted text clipped - 11 lines]
> >
> > Rollasoc
Morten Wennevik - 15 Dec 2004 18:23 GMT
Hi Rollasoc,

Are you by any chance using McAfee 8?
There was a thread similar to your's one month ago which is related to  
McAffee's use of double buffering or something.  Supposedly there is a  
patch, somewhere.

Link to the google archive:

http://groups.google.no/groups?hl=no&lr=&threadm=AE6351CE-2E4F-4D1E-BD9F-D3A7A0A
47DFD%40microsoft.com&rnum=20&prev=/groups%3Fq%3Dblank%2Bmessagebox%26start%3D10
%26hl%3Dno%26lr%3D%26selm%3DAE6351CE-2E4F-4D1E-BD9F-D3A7A0A47DFD%2540microsoft.c
om%26rnum%3D20


> MessageBox.Show("Hello", "Boo", MessageBoxButtons.OK,
> MessageBoxIcon.Information);
[quoted text clipped - 7 lines]
>
> Rollasoc

Signature

Happy Coding!
Morten Wennevik [C# MVP]

Herfried K. Wagner [MVP] - 15 Dec 2004 21:19 GMT
"Rollasoc" <hotmail@hotmail.com> schrieb:
> MessageBox.Show("Hello", "Boo", MessageBoxButtons.OK,
> MessageBoxIcon.Information);
[quoted text clipped - 3 lines]
> and the message box display a blank button and not one that says "OK".
> "Boo" does appear in the Title bar.

Maybe you are running an unpatched version of McAfee VirusScan 8:

Patch 5 for McAfee VirusScan Enterprise 8.0i
<URL:https://knowledgemap.nai.com/phpclient/viewKDoc.aspx?url=kb/kb_kb38717.xml&docTy
pe=DOC_KnowledgeBase
>

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/

Rollasoc - 16 Dec 2004 11:34 GMT
I've updated Mcafee with all the latest patches and this has cured the
problem.

Thank you all very much.

Rollasoc

> "Rollasoc" <hotmail@hotmail.com> schrieb:
> > MessageBox.Show("Hello", "Boo", MessageBoxButtons.OK,
[quoted text clipped - 8 lines]
>
> Patch 5 for McAfee VirusScan Enterprise 8.0i

<URL:https://knowledgemap.nai.com/phpclient/viewKDoc.aspx?url=kb/kb_kb38717.
xml&docType=DOC_KnowledgeBase>

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.