Click here to Skip to main content
15,902,492 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Large image handling Pin
Dave Kreskowiak26-May-08 8:06
mveDave Kreskowiak26-May-08 8:06 
GeneralRe: Large image handling Pin
Rob Brookes26-May-08 8:25
Rob Brookes26-May-08 8:25 
Question[Message Deleted] Pin
Kumaran21cen24-May-08 23:54
Kumaran21cen24-May-08 23:54 
AnswerRe: How to get files list from my website Pin
jzonthemtn25-May-08 14:02
jzonthemtn25-May-08 14:02 
QuestionCalender Control Pin
Sameer Khade24-May-08 20:37
Sameer Khade24-May-08 20:37 
AnswerRe: Calender Control Pin
helelark12324-May-08 21:08
helelark12324-May-08 21:08 
AnswerRe: Calender Control Pin
Piyush Vardhan Singh26-May-08 2:31
Piyush Vardhan Singh26-May-08 2:31 
QuestionConverting an inherited class into a wrapper? Pin
supercat924-May-08 8:44
supercat924-May-08 8:44 
I presently have a class which inherits another class, thus allowing methods and properties of the base class to be used as though they were properties of the inheriting class. Although that reduced typing when I was making the class itself, I've since decided I don't particularly like the design since operations that make sense applied to the base class don't necessarily make sense applied to the inheriting one, and even those that do would be more meaningfully applicable to the object within the inheriting class rather than to the inheriting class object itself.

If all references to the underlying base class were preceded by "mybase." there would be no particular difficulty changing the class to use a wrapper. All I'd have to do would be to define a new object of the inner type within the outer class, create it within the outer class' constructor, and then find/replace "mybase" with the name of that new object.

Is there any practical way to have VB stick "mybase." in front of all inherited properties and methods, or assist with the conversion in some other way?

One of my goals with switching from inheritance to wrapper is to allow the use of something like:

wrapperObject.thing = factoryFunction(someOtherThing)

This sort of scenario really doesn't work if 'thing' is inherited, since wrapperObject.myBase is a read-only property.
AnswerRe: Converting an inherited class into a wrapper? Pin
Colin Angus Mackay24-May-08 9:45
Colin Angus Mackay24-May-08 9:45 
GeneralRe: Converting an inherited class into a wrapper? Pin
supercat924-May-08 13:24
supercat924-May-08 13:24 
GeneralRe: Converting an inherited class into a wrapper? Pin
theitmueller25-May-08 2:02
theitmueller25-May-08 2:02 
GeneralRe: Converting an inherited class into a wrapper? Pin
supercat925-May-08 12:04
supercat925-May-08 12:04 
AnswerRe: Converting an inherited class into a wrapper? Pin
Scott Dorman25-May-08 1:57
professionalScott Dorman25-May-08 1:57 
QuestionVB with crystal report problem Pin
monika_vasvani24-May-08 7:43
monika_vasvani24-May-08 7:43 
AnswerRe: VB with crystal report problem Pin
Mohammad Al Hoss25-May-08 23:45
Mohammad Al Hoss25-May-08 23:45 
GeneralRe: VB with crystal report problem Pin
monika_vasvani2-Jun-08 22:13
monika_vasvani2-Jun-08 22:13 
GeneralRe: VB with crystal report problem Pin
Mohammad Al Hoss3-Jun-08 2:40
Mohammad Al Hoss3-Jun-08 2:40 
QuestionAdd custom task pane in outlook 2003 using vb.net 2005 Pin
~Khatri Mitesh~24-May-08 4:47
~Khatri Mitesh~24-May-08 4:47 
QuestionRegex required Pin
d_smit24-May-08 4:23
d_smit24-May-08 4:23 
QuestionLogin Restriction Pin
Sritanu _ Ghosh24-May-08 3:54
Sritanu _ Ghosh24-May-08 3:54 
AnswerRe: Login Restriction Pin
jzonthemtn24-May-08 5:10
jzonthemtn24-May-08 5:10 
GeneralRe: Login Restriction Pin
Sritanu _ Ghosh26-May-08 3:58
Sritanu _ Ghosh26-May-08 3:58 
GeneralRe: Login Restriction Pin
jzonthemtn26-May-08 7:30
jzonthemtn26-May-08 7:30 
QuestionConverting MFC apps to .net Pin
Fu Manchu24-May-08 1:17
Fu Manchu24-May-08 1:17 
AnswerRe: Converting MFC apps to .net Pin
Garth J Lancaster24-May-08 2:32
professionalGarth J Lancaster24-May-08 2:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.