hi Friends

Iam using Vb6.0 for one msgbox using this message box title need change plz help me....


Thanks

Dani AI

Generated

As already points out, VB6 will show whatever title you pass to the message box — and if you omit that title, the IDE/runtime falls back to the application's project name (which is why you’re seeing "Project1"). is right that the earlier reply already covered how to supply a title for a single MsgBox call.

To change the default that appears when you do not pass a title:

  • In the VB6 IDE open the Project menu and choose your Project Properties. Change the project name / application title there, save, and run or rebuild. The new name becomes the default title used by MsgBox when no title argument is supplied.

If you want to change the title at runtime or for a single message:

  • Set the application title property at startup (so every MsgBox without an explicit title uses it), or supply an explicit title for each MsgBox where you want a custom caption.

Troubleshooting tips:

  • Make sure you changed the correct project (not a referenced DLL/OCX); message boxes shown by the host process will use the host’s title.
  • Save and rebuild after changing project properties; the IDE can keep showing the old name until you restart or recompile.
  • If a MsgBox still shows "Project1", check that the call isn’t unintentionally passing an empty string as the title.

Summary: supply a title per message for precise control, or change the project/application title in Project Properties to alter the default "Project1" caption across the app.

Recommended Answers

All 3 Replies

When programming a msgbox, you can specify the text, type, and title of the msgbox as follows:

Msgbox "The contents of msg here", vbInformation, "The Title Here"

note that you can change the vbInformation to any other type of msgbox (vbCritical, vbExclamation).
Also, you may combine two types (vbQuestion+vbYesNo).

(if your issue is solved then please mark this post as SOLVED)

commented: Nice Response +10

Thanks For your Reply..

That is correct for showing message....
I wonder how i can change title of my msgbox . it keep showing me project 1. I be happy if some one tell me how i can change it to some thing meaning full

.Thanks

He answered your question above....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.