Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 21st, 2005, 05:17 AM
Registered User
 
Join Date: Jun 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB.NET MESSAGEBOX

Dear all,

I am a biggner of VB.NET i am facing a verry small problem. when i am using Messagebox.show method it is displaying the messagebox but it is not displaying any text on that. even the text on button is also not appearing.

i am using Windows Server 2003 Enterprise Edition.

Please help me.

Thanks

 
Old June 21st, 2005, 07:08 AM
Authorized User
 
Join Date: May 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Could you please post your code that calls the method?

Assuming that you have the code formatted properly, the only thing that comes to mind is that maybe you do not have the .NET framework installed where you are attempting to run your code. The MessageBox.Show() method is really quite simplistic, so the only variable here is whether or not all the required components are available for the code to run properly.

 
Old June 21st, 2005, 07:49 AM
Registered User
 
Join Date: Jun 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear Cliffd

Actually i installed VB.NET in my system which first installs .Net Frame work. I am using this MessageBox.show() when i am creating VB.NET Soluation. Is there any problem in OS itself. If it is OS problem it should effect to all message boxes...

please give me some idea.


Quote:
quote:Originally posted by cliffd64
 Could you please post your code that calls the method?

Assuming that you have the code formatted properly, the only thing that comes to mind is that maybe you do not have the .NET framework installed where you are attempting to run your code. The MessageBox.Show() method is really quite simplistic, so the only variable here is whether or not all the required components are available for the code to run properly.

 
Old June 21st, 2005, 09:05 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Are you using just Messagebox.Show() or are you passing a string value to it?

You have to tell it what to show, otherwise it will just show an empty box.

Messagebox.Show("This message will be shown")

--And actually, you should get an error if you just user Messagebox.Show() because it requires arguments...

J
 
Old June 21st, 2005, 01:17 PM
Authorized User
 
Join Date: May 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by katsarosj
 Are you using just Messagebox.Show() or are you passing a string value to it?

You have to tell it what to show, otherwise it will just show an empty box.

Messagebox.Show("This message will be shown")

--And actually, you should get an error if you just user Messagebox.Show() because it requires arguments...

J
That's why I asked for the code... as I wasn't certain that the string was being provided :) Sometimes the obvious is overlooked :)

 
Old September 14th, 2005, 07:50 PM
Registered User
 
Join Date: Sep 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am having the same problem! :(

I have the following line in my program:

     MessageBox.Show("There is a problem with your data")

And a MessageBox does show up, but there is no text message or OK, label on the button. BUT, it only doesn't work on some machines, not all machines. i.e. on my computer at home, I get no text, but with the computer in my office, the text does display.



 
Old September 22nd, 2005, 01:58 AM
Registered User
 
Join Date: Sep 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Rowdy.nl
Default

It seems to be a bug in .NET... :(

Take a look at this report (http://qc.borland.com/wc/qcmain.aspx?d=14398) on the Borland website, it clearly descripes the problem with MessageBox.Show()

Did anybody here already find a solution?

 
Old September 22nd, 2005, 02:24 AM
Registered User
 
Join Date: Sep 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Rowdy.nl
Default

Found the problem, you won't believe it... :)

It seems to be a bug in the McAfee Virusscan 8 Buffer Overrun protection... Disable it, and the messagebox will work properly...

More info: http://www.dotnet247.com/247referenc...58/292493.aspx






Similar Threads
Thread Thread Starter Forum Replies Last Post
display messagebox in ASP.Net with VB.Net suresh_accudocs ASP.NET 1.0 and 1.1 Basics 7 November 5th, 2014 06:31 PM
MessageBox en ASP.NET bloparod ASP.NET Espanol 4 September 24th, 2014 02:16 PM
Creating a MessageBox in Asp.Net ScepterMT ASP.NET 2.0 Basics 3 March 24th, 2008 01:01 PM
text in messagebox in not showing (.net 2003) prasant.swain VS.NET 2002/2003 1 January 10th, 2006 09:04 AM
vb.net 2002 - vb.net 2003 book metalaaron Wrox Book Feedback 0 August 2nd, 2003 10:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.