Okay, so I'm working on a text editor that will maintain a butt-load of macros( for use with HTML, really ). I've decided on a split container with a rich text box on the big side, and a list box and three buttons on the small. The list box will display the macros ( e.g.
"<-a href="http://www.baldwin.senate.gov"><img src="images/Democrats/baldwin-tammy.jpg" />" - and 99 more quite like that ), and the buttons will allow adding, deleting, and modifying them.
I can't seem to find adequate explanation ( read: hand-holding ) for binding a List<string> to the listbox or making the List<string> update with there was a <-return> pressed in the textbox.
Here's the plan: Click the 'Add' button, a textbox pops up, enter macro text, hit <-return>, textbox goes away, the text that was entered shows up in the listbox. And, what might need rethinking, I want to click the lines of text ( individually, of course ) in the list box and have them inserted into the rich textbox at the current caret position.
Any help with any part of all that ( or even pointing me at a good tut ) would be much appreciated. Thanks.