Hi,
I have created a vspackage in visual C#,and it is a menu extension , when i choose menu item a message box should pop up,for that i have used the following code
IVsUIShell uiShell = (IVsUIShell)GetService(typeof(SVsUIShell));
Guid clsid = Guid.Empty;
int result;
Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(uiShell.ShowMessageBox(
0,
ref clsid,
"MainMenu",
string.Format(CultureInfo.CurrentCulture, "Unable to connect to network, please try again later", this.ToString()),
string.Empty,
0,
OLEMSGBUTTON.OLEMSGBUTTON_OK,
OLEMSGDEFBUTTON.OLEMSGDEFBUTTON_FIRST,
OLEMSGICON.OLEMSGICON_INFO,
0, // false
out result));
}
and i get the above as output
How ever i need to change the message box header , i don't want to use the highlighted header, how o change that?
Kani