How do I create a popup window with Yes/No buttons and a Information Mark icon?

Question:

I need to have a popup window in PowerShell that has the information mark icon with yes & no buttons.

My current code is as follows:

With only the yes or no part. I need an icon there too.

Answer:

You can do it like this:

The values for the icons are as follows:

The values for the buttons are as follows:

So information icon and yes/no buttons is 64 + 4

IMO in this situation it makes more sense to use a question icon since you are asking a question rather than just conveying information so it would be 32 + 4 in that case.

Source:

How do I create a popup window with Yes/No buttons and a Information Mark icon? by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply