c# - Recycle Bin image displayed on message box -


writing winforms application. have created yes/no message box, displayed user when trying delete file add recycle bin image message. how access, use things message boxes systems icons/images?

messagebox.show("please confirm delete folder named:" + fldnme,                          "confirm folder delete",                          messageboxbuttons.yesno,                          messageboxicon.exclamation); 

obviously replacing messageboxicon with?

thanks

short answer: cannot.

the win32 messagebox window lets choose 1 of 4 icons (the other members of messageboxicon synonyms) corresponds purpose of messagebox:

  • ask user confirmation question (a yes/no messagebox question-mark icon)
  • to warn user (usually single button warning triangle icon)
  • to inform user of information (usually single button "i" icon)
  • to inform user of serious error (usually single button red stop icon)

in use-case, ask user confirm deletion of file, should use either question-mark icon or warning triangle icon.

i'm going assume call file.delete if user selects yes rather moving file recycle bin. if case shouldn't use recycle bin icon (even if could) because aren't moving bin, you're deleting straight away.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -