Click here to Skip to main content
11,438,007 members (46,197 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Windows WPF VB.NET
Hi all

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

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

but when i am using
MessageBoxOptions.RtlReading
or
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 8-May-13 21:33pm
Code-Hunt7.1K
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Dim result As DialogResult = MessageBox.Show("Are you sure ???","confirmation",MessageBoxButtons.YesNoCancel,MessageBoxIcon.Question)
  Permalink  
Comments
Code-Hunt at 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..
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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:

Dim answer As String = MsgBox("Are you sure ???", MsgBoxStyle.YesNoCancel+MessageBoxOptions.RtlReading, "TITLE HERE")
  Permalink  
Comments
Code-Hunt at 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)



Advertise | Privacy | Mobile
Web03 | 2.8.150506.1 | Last Updated 9 May 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100