c# - Where's 'AllowDrop' in the VS PropertyGrid? -


i can't find allowdrop property on richtextbox control (sorted alphabetically):

enter image description here

i'm sure there's property because compile fine (and make working richtextbox's drag-and-drop)

msg_textbox.allowdrop = true; 

i don't understand because vs didn't show it.

the .net framework reference source excellent way find answer questions this. quoting comment on richtextbox.allowdrop property (edited fit):

/// richtextbox controls have built-in drag , drop support, but
/// allowdrop, dragenter, dragdrop may still used:
/// should hidden in property grid, not in code

what "built-in drag , drop support" looks bit mysterious btw. sure meant allow dragging of embedded ole objects. richtextbox 1 of last remaining pieces of microsoft software still supports ole. otherwise dead doornail , have no programs still installed anymore have it, know of anyway.

so, laser stun , follow guidance comment, set allowdrop true in form constructor.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -