Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Changing the header of custom message box that is used in VSPackages

$
0
0

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


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>