Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all

I am using a yes/no/cancel message box while deleting a data..below is the code

VB
Dim answer As String = MsgBox("Are you sure ???", MsgBoxStyle.YesNoCancel, MessageBoxOptions.RtlReading)


but when i am using
VB
MessageBoxOptions.RtlReading
or
VB
MessageBoxImage.Question
, instade of showing the icon it's showing some numbers in the title bar of the box..

can you please tell me what is the problem..

Thank you
Posted

VB
Dim result As DialogResult = MessageBox.Show("Are you sure ???","confirmation",MessageBoxButtons.YesNoCancel,MessageBoxIcon.Question)
 
Share this answer
 
Comments
[no name] 9-May-13 2:56am    
please read the question i asked..i gave this option is also not showing me anything apart from some numbers..
The third parameter is the title. If you want yes/no/cancel and a question mark, you need to use the + sign between them like this:

VB
Dim answer As String = MsgBox("Are you sure ???", MsgBoxStyle.YesNoCancel+MessageBoxOptions.RtlReading, "TITLE HERE")
 
Share this answer
 
Comments
[no name] 9-May-13 3:07am    
Thanks...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900