Thursday, June 12, 2003

A listbox in C# does not allow copy to clipboard by the user. Create a listbox in "design mode," such as "WebForm1.aspx." Then turn on SelectionMode = Multiple in the properties. Populate the listbox somehow (either design time or runtime) and press F5. You'll find indeed you are able to multiselect in the listbox, but copy to clipboard does not mean anything. (I use ctrl+c). So now I'm off to study the clipboad object to see if I can put a kludgey button on the ui (such as "copy to clipboard") that will have the desired effect. Darn those listboxes, they seem so handy, but trust the dark side you must not...
comment []4:24:04 PM