Solved

vb.net control override

Posted on 2006-07-18
3
490 Views
Last Modified: 2008-02-01
I am looking for a tag in a custom control that I would like to override.

I am using text already and it is working well.

It is a custom control so when I call mycontrol.text, I get the correct value.

I tried using tag, but it is not overrideable.

Thanks
0
Comment
Question by:jackjohnson44
3 Comments
 
LVL 5

Expert Comment

by:mydasx
Comment Utility
create a public property called Text.  Simple.  :)
0
 
LVL 3

Accepted Solution

by:
HouseMusic earned 500 total points
Comment Utility
Just creat a new control that inherits it, then overrided that one property, or add another one called whatever you want.



0
 

Author Comment

by:jackjohnson44
Comment Utility
I am already using text as can be seen above.

I want to loop the controls on the form and ask for a property.
Since text is common to all, I don't have to worry if it only exists on my control.

I want something similar to text which can be overridden.

I tried "tag" but it isn't overrideable.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now