Solved

vb.net control override

Posted on 2006-07-18
3
496 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
ID: 17134447
create a public property called Text.  Simple.  :)
0
 
LVL 3

Accepted Solution

by:
HouseMusic earned 500 total points
ID: 17138152
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
ID: 17138358
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

821 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