I am creating a SF User Control with a ThemedtoolStrip to be used with the enhanced functionality of the ListView (AddObject, DeleteObject and EditObject). After I finished the user control and dropped on a form, I can not select any buttons in the toolstrip to be assigned to the ListView, the only available object in this user control is the user control itself.
What am I missing here?
How to create a common ThemedToolStrip class to be used in several forms?
Go at it from the other direction. Create a toolstrip, then subclass the ListView. On the ListView, create a property that is typed as the custom toolstrip that you created. When you drop the ListView on the form, you can then attach the Toolstrip to the ListView using that property. This is the same approach that we use on our RichTextToolstrip and our RTF control...it would probably give you some ideas.
Also, while we are on the subject, I did add another property to the ListView to let you decide whether the record will be marked as deleted or actually "smoked" from the database
Also thanks for the new delete flag property, that will save us from having to code around it and looks much more clean.