Click here to Skip to main content
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
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)

  Print Answers RSS
0 OriginalGriff 587
1 Sergey Alexandrovich Kryukov 479
2 Maciej Los 305
3 Mathew Soji 195
4 Afzaal Ahmad Zeeshan 170
0 OriginalGriff 7,356
1 Sergey Alexandrovich Kryukov 6,777
2 DamithSL 5,461
3 Manas Bhardwaj 4,916
4 Maciej Los 4,475


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 9 May 2013
Copyright © CodeProject, 1999-2014
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