Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Message Box Title 1

Status
Not open for further replies.

tekrobg

Programmer
Oct 12, 2004
42
US
I am new to programming. I know that a message box title takes on the name of the application. I started a new application and let the name be the default name "WindowsApplication1". Now I have changed the name to something else, but "WindowsApplication1" still shows on the message boxes. I thought I changed the name of the application everywhere I needed to.

Where do I need to change the application name so the message boxes show the correct program name?

Thanks for any help.
 
You can specify the title of the message box in the arguements you pass it.

MsgBox("Click OK or Cancel", MsgBoxStyle.OKCancel, "An OK/Cancel MessageBox")

Would get you a message box with the message "Click OK or Cancel", OK and Cancel buttons, and the title woulc be: "An OK/Cancel MessageBox"

For the project name, right click on your project in the solution explorer and select "Properties" the Assembly Name and Root Namespace are under "General"

-Rick

----------------------
 
vb.net has 12 styles of message boxes. my favorite is this:

messgebox.show("stuff to say", "title of box", buttons, boxtype)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top