want to display the ? icon in messagebox

hi all
how do i display the ? icon in a messagebox?

  DialogResult = CType(MsgBox("Una vez generada la órden de compra ya no se podrá modificar la Requisición, Proceder?", MsgBoxStyle.YesNo, MessageBoxIcon.Question), Windows.Forms.DialogResult)
       

tsm
ErnestoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ErnestoAuthor Commented:
is this

DialogResult = CType(MsgBox("Una vez generada la órden de compra ya no se podrá modificar la Requisición, Proceder?", vbQuestion, MsgBoxStyle.YesNo), Windows.Forms.DialogResult)

is this but i want the word "Aviso" in the top of the mssgbox
tsm
0
ArgentiCommented:
In Visual Basic.NET you should use

Dim result = MessageBox.Show(message, caption, _
                                 MessageBoxButtons.YesNo, _
                                 MessageBoxIcon.Question)

Open in new window


but I suppose you are working in Visual Basic (not .NET) in which case:
Dim result as MsgBoxResult
result = MsgBox("Message for the user", _
                                 MsgBoxStyle.YesNo Or MsgBoxStyle.Question, _
                                 "Window Title")

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ErnestoAuthor Commented:
Tsm, yes is vb.net
this works for me, but i want to add the word "Aviso", where i need to put it?

DialogResult = CType(MsgBox("Una vez generada la órden de compra ya no se podrá modificar la Requisición, Proceder?", vbQuestion, MsgBoxStyle.YesNo, "aviso"), Windows.Forms.DialogResult)

In where is put marks error
tsm
0
ArgentiCommented:
DialogResult = CType(MsgBox("Una vez generada la órden de compra ya no se podrá modificar la Requisición, Proceder?", vbQuestion + vbYesNo, "aviso"), Windows.Forms.DialogResult)

http://www.thevbprogrammer.com/VBNET_08/08-00A-Msgbox.htm
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.