BP Forums
Properties for UserControl - Printable Version

+- BP Forums (https://bpforums.info)
+-- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=55)
+--- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=56)
+---- Forum: VB.NET (Visual Basic 2010/2008) (https://bpforums.info/forumdisplay.php?fid=8)
+----- Forum: Programming Help (https://bpforums.info/forumdisplay.php?fid=9)
+----- Thread: Properties for UserControl (/showthread.php?tid=714)



Properties for UserControl - brco900033 - 12-22-2012

Hello everyone

I want to make a component for visual studio. This requires some properties so the user can edit them. I'm totally new with this so I have some questions. How can I make a property that gives the user the option to choose from a list (don't know exactly how to describe it so I took a pic, [attachment=1]<!-- ia1 -->Screenshot_1.png<!-- ia1 -->[/attachment]).

I have also a lot of properties that belong to one category, but how can I make such a category with the sub-catgs? [attachment=0]<!-- ia0 -->Screenshot_2.png<!-- ia0 -->[/attachment]

Thanks in advance!


Re: Properties for UserControl - brandonio21 - 04-11-2013

Wow! I meant to get back to you way earlier! I hope you're still around to see this.

I have created an in-depth post about Properties. I will also upload a video about them in time. Hopefully this helps:
<!-- l --><a class="postlink-local" href="http://bpforums.info/viewtopic.php?f=22&t=886">viewtopic.php?f=22&t=886</a><!-- l -->


Re: Properties for UserControl - brco900033 - 04-24-2013

Thanks, I needed this alot. Without the properties my component is pretty useless (ofcourse). Thanks again


Re: Properties for UserControl - brandonio21 - 04-24-2013

No problem, I'm glad I could help! Sorry for the late response!


Re: Properties for UserControl - brco900033 - 04-27-2013

I have another little question about properties for a UserControl.
How can I set a default value for property that contains an image. I know how to do it for a string and a boolean... but not for an image.