User Control


Author
Message
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi,

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?

Edhy Rijo

Replies
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Then what would be the .NET way to minimize maintenance when using basically the same control 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 Wink

Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Thanks for the idea, I will work on that path.

Also thanks for the new delete flag property, that will save us from having to code around it and looks much more clean. Smile

Edhy Rijo

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Edhy Rijo - 17 Years Ago
Keith Chisarik - 17 Years Ago
Edhy Rijo - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Edhy Rijo - 17 Years Ago
                         [quote]Then what would be the .NET way to minimize maintenance when...
Trent L. Taylor - 17 Years Ago
                             Thanks for the idea, I will work on that path. Also thanks for the...
Edhy Rijo - 17 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search