Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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 December 18th, 2006, 01:10 PM
Registered User
 
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default MessageBox won't display?

Hi everyone,

I tested a small program (HelloUser) on page 29 (Beginning VB.NET 2003 textbook) and it wouldn't display the message as it was supposed to.

Here is the code for HelloUser program:

=============================================
Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
        MessageBox.Show("Hello, " & txtName.Text & _
        "! Welcome to Visual Basic .NET.", _
        "HelloUser Message")
End Sub
=============================================

When I hit F5 to run this program, I could see the form. The form has a textbox, a label and 2 buttons (1 for submit, 1 for exit). I type my name in the textbox and click the 'OK' button to submit the form.

What should happen is that after I click the 'OK' button to submit, it should open up another window with a message 'Hello, myname! Welcome to Visual Basic.NET.' In my case, I could only see another pop up window without any message in it. There is no error message when I run it so it's hard for me to tell what's wrong with it. I tried this code on my friend's computer and it works fine.


Please helps.

Jane






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 help Barkils C# 1 July 16th, 2007 09:30 PM
Display integer Value in MessageBox iceonfire VS.NET 2002/2003 1 October 10th, 2006 01:01 AM
MessageBox Ric_H General .NET 2 April 19th, 2006 01:45 PM
Messagebox mh VB.NET 27 March 31st, 2005 01:41 PM





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