1
Answer

Making a Drag & Drop List Like JavaScript Drag & Drop Lists

Photo of Jeremy Munn

Jeremy Munn

17y
4.4k
1
    I have been trying to figure out a way to create a drag & drop list inside of c# that is similar to the drag & drop lists that I've found for JavaScript on the web.  Here is an example of the JavaScript lists that I'm talking about:
http://blog.paranoidferret.com/index.php/2007/10/04/javascript-tutorial-drag-drop-lists/

I plan to use the list so I can organize different tasks which can be added/deleted via a different process and it would be great to get the kind of behavior like on the site listed above, but I would be willing to use something else if someone knows a better way of doing this.

Thanks for any and all help.

~jeremy

Answers (1)

0
Photo of John
NA 8 0 18y
Ok, how does this translate to the RTB control?

With properties such as Font, ForeColer, BackColor etc. It's simply a matter of selecting the text you want (best done via REGEX) then changing the back and forecolors.

So I think your question is how do I filter incoming ASCII data?  Use REGEX
How do I apply the formatting to the data? Use the RTB.properties and methods.
0
Photo of John
NA 8 0 18y

In the font world there are two types of fonts proportional and non-proportional.  Try using Courier New, it is a non-proportional font.

Your other issues, that of knowing the differences between RTF and regular text files is summed up with this statement: "They are both standards-based ways to present data to the end user."  

Here's the RTF standard.

http://www.microsoft.com/downloads/details.aspx?FamilyID=e5b8ebc2-6ad6-49f0-8c90-e4f763e3f04f&DisplayLang=en 

A Rich Text Box supports this standard.

TextBox is a more simple "standard" that has much less overhead.  I don't know the standard for Textbox support but feel it must be pretty simply  ASCII characters with very simple font control.