|
-
Jun 22nd, 2009, 10:24 AM
#1
Thread Starter
Member
[RESOLVED] VB.net Custom Control Properties
Hi,
Bit new to creating server controls. One thing i'd like to know is how to make property with like a selection menu. For example, if you have a textbox it has a property called "Textmode" and the possible values are either Singleline, Multiline or password and cannot be overridden.
How would i go about achieving something very similar to this in my server control?
Thanks
Last edited by Ch1n; Jun 22nd, 2009 at 10:36 AM.
"He who dares, wins"
-
Jun 23rd, 2009, 01:41 AM
#2
Re: VB.net Custom Control Properties
Create an enum and make the property of that enum type.
-
Jun 23rd, 2009, 02:36 AM
#3
Thread Starter
Member
Re: VB.net Custom Control Properties
ah ha, spot on, that has done the trick thanks
-
Jun 23rd, 2009, 06:35 AM
#4
Re: VB.net Custom Control Properties
Hey,
If your question has been answered, remember to mark your thread as resolved, there are links in my signature that will explain how to do this if you are unsure.
Gary
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|