To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
MSDN Subscribers: Download the VS 2010 Release Candidate
MSDN Subscribers: Download the VS 2010 Release Candidate
Sell Your Code and Make Money?
Creating your own Tetris game using VB.NET
Article :: Improving Software Economics, Part 4 of 7: Top 10 Principles of Iterative Software Management



Go Back   VBForums > Visual Basic > Visual Basic .NET

Reply Post New Thread
 
Thread Tools Search this Thread Display Modes
Old Jun 22nd, 2007, 10:09 AM   #1
Makavelli
Junior Member
 
Join Date: Mar 05
Posts: 17
Makavelli is an unknown quantity at this point (<10)
How to inherit all control's properties in user control

I am trying to create a user control with a label and combobox controls and I don't want to have to create all the exposed properties that already exist for the combobox in my control.

My question is this: Is is possible to automatically inherit all the properties for the combobox and the label?

For example, I don't want to have to write this code to show the combobox's SelectedIndex Property but have it show up in the control's property

Code:
<System.ComponentModel.Description("Selected Index"), _
System.ComponentModel.Category("Combobox")> _
Public Property SelectedIndex() as Integer
        Get 
              Return Combobox.SelectedIndex
        End Get
        Set (ByVal value as Integer)
              Combobox.SelectedIndex = value
        End Set
End Property
Thanks
Makavelli is offline   Reply With Quote
Reply

Go Back   VBForums > Visual Basic > Visual Basic .NET


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:40 AM.




To view more projects, click here

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.