What are the areas that a user control should have? I'm looking for the basic requirements for creating your
own control. I have my control about half way done and I am having thoughts about how to complete it.
A control should have properties, methods, and events (this I have done).
It needs to use the "UITypeEditor" to allow the developer to add and remove
collection items. My code Adds but not removes.
Also, I need to know how you link props to a collection of items?
Any other areas I have missed or if you have suggestions on how to fix the
add/remove issue are welcomed.
Thanks in advance.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Another question, should my properties for the Item be in the class that the
Item referrs to? Would this make the properties relate to each instance of my collection?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
rob, good property/method documentation is a must in a user control.. you know the intellisense stuff..... well VB.NET doesn't support it (to make) directly, but lucky for us, one of the 101vb.net examples is an app that shows just how to do this...
also there are a bunch of attributes that you may want to define in your control... let me attach a control I use which is the system tray icon, but its enhanced to use balloon tips, the guy that wrote it did a good job on it.. and you could probably get some insight from it..
can you go into more detail about your collections issue? i tried to follow it, but got kinda lost
Its my "infamous" panel control. I have props for the base control like width and height, but for adding and
removing the sub panels I got Aaron to help me with that. So we are using the UIEditor with a panel and
panels class. When I click on the Panels collection elipsis button the designer popups up and I can add panels,
but between shows of the editor it I remove panels show the editor again they still exist and I am allowed
to create duplicat names for the too. I am going now where fast.
Thanks for the example. I am going to go through it. Coincidence that I want my main program to contain
the minimize to systray feature like you provided. Kill two birds with one stone
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.