|
-
Oct 21st, 2003, 09:06 AM
#1
Thread Starter
Member
Add properties to a radiobutton.
Hi all, I have searched hard and haven't found anything to help me out on my latest endeavor. I need to take a radiobutton and add my own properties to it. Is this even possible? If so, could someone lead me to a good article, tutorial or sample code to get me on my way?
Thanks for your help.
Tomson
-
Oct 21st, 2003, 09:49 AM
#2
You have to make your own Radiobutton but you can inherit from the standard one. Although the big question is why add properties to the radiobutton?
VB Code:
Public Class RadioButtonEx
Inherits RadioButton
Private _MyProperty As String
Public Property MyProperty As String
Get
Return _MyProperty
End Get
Set(ByVal Value As String)
_MyProperty=Value
End Set
End Property
End Class
-
Oct 21st, 2003, 09:55 AM
#3
Thread Starter
Member
Thanks a lot. That will be very helpful. The reason I want to add my own properties, is to better track which buttons are true and which are false, without using an array, and better simulate some of the lost functionallity that I liked in Vb6. I know there are better features in .net but some of the features they took away I don't understand why. Well anyway, thanks again.
You are always very helpful and insightful.
Thanks,
Tomson.
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
|