Wrox Programmer Forums
|
BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003
This is the forum to discuss the Wrox book Professional VB.NET 2003 by Bill Evjen, Billy Hollis, Rockford Lhotka, Tim McCarthy, Jonathan Pinnock, Rama Ramachandran, Bill Sheldon; ISBN: 9780764559921
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 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 September 9th, 2004, 07:43 AM
Registered User
 
Join Date: Sep 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default No text in messagebox Chapter 1

I tried the chapter 1 sample and could not get it to work, even with the code downloaded from this site. The message box when displayed has "HelloUser Message" in the title bar, but there is no text in the messagebox and no text on the ok button. Any ideas?

 
Old September 9th, 2004, 08:06 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

I tried the code and it works fine for me. Could you post the code from your form so I can have a look at it.

Thearon
 
Old September 9th, 2004, 08:37 AM
Registered User
 
Join Date: Sep 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It is the file from the download, unmodified in any way.

MessageBox.Show("Hello, " & txtName.Text & _
"! Welcome to Visual Basic .NET.", _
"HelloUser Message")




 
Old September 9th, 2004, 09:31 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

I don't see anything wrong with the code. What version of the book did you download the code from and what version of Visual Studio are you running? Also, are you creating and running this project locally or on a mapped network drive?

Thearon
 
Old September 9th, 2004, 10:04 AM
Registered User
 
Join Date: Sep 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I downloaded the code from this site an hour or so ago for Beginning VB.NET, 2nd Edition (Beg_VB.NET_Code.zip). I have VS2003. I've tried running the exe straight from the Chapter01 bin directory and the project from within VS.

I think it's doing something weird like making the text the same color as the back ground. If I leave the input field for my name in the helloworld app blank, then the resulting messagebox is much narrower than if I completely fill the textbox with characters.

Also, I've tried several other project from the code and am getting the same behavior for other messageboxes.

Thanks for looking into this,
Will

 
Old September 9th, 2004, 12:31 PM
Registered User
 
Join Date: Sep 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

UPDATE:

I just did a fresh install of VS2003 on a computer with a newly installed OS (XP) and am getting the same problem.

 
Old September 9th, 2004, 01:57 PM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Are you customizing the desktop colors at all? Have you set a breakpoint (See Chapter 11 in Beginning VB.Net, 2nd Edition) on the line of code to see what is being generated? Finally, do any of the other samples run OK?

Other than that, I'm not sure I can help you any further without actually being there. I hope this helps.

Thearon
 
Old September 10th, 2004, 05:55 AM
Registered User
 
Join Date: Sep 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I dont' think it's a customization issue because I did a fresh install of VS on a machine that I had just reloaded the OS on. It has to be something local though because all the samples that utilize a message box are blank as well. I'll try the breakpoint.

Thanks for your suggestions.
Will

 
Old October 12th, 2004, 12:57 PM
Registered User
 
Join Date: Oct 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Having the same problem. Can't get text to display in messagebox or listbox? I have also reinstalled Visual Studio Dot Net so I have a fresh copy--still same problem. Have you found a solution to this yet?
Please post if you have or email me.
Thanks,
Captainshane

 
Old October 15th, 2004, 05:07 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

This turned out to be an antivirus issue. Please check with your vendor if disabling your antivirus software does not work.

Thearon





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 5 read text & checkbox: a stopper! zeitguy BOOK: Beginning Ruby on Rails 5 April 1st, 2008 10:37 PM
MessageBox Buttons Text angelboy C# 2005 6 April 12th, 2007 12:29 AM
text in messagebox in not showing (.net 2003) prasant.swain VS.NET 2002/2003 1 January 10th, 2006 09:04 AM
Answer to why messagebox has no text mitercut BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 1 September 15th, 2004 07:46 AM





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