Click here to Skip to main content
16,014,940 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Global Error Handling Pin
Christian Graus17-Jan-07 0:35
protectorChristian Graus17-Jan-07 0:35 
QuestionVertical Label Pin
Laji5916-Jan-07 20:36
Laji5916-Jan-07 20:36 
AnswerRe: Vertical Label Pin
MatthysDT17-Jan-07 0:50
MatthysDT17-Jan-07 0:50 
QuestionCan I make a Crystal Report using dataview Pin
hisuman10016-Jan-07 20:08
hisuman10016-Jan-07 20:08 
QuestionGet Words from .doc, .rtf, .htm [modified] Pin
Kumaran21cen16-Jan-07 19:54
Kumaran21cen16-Jan-07 19:54 
AnswerRe: Get Words from .doc, .rtf, .htm Pin
Christian Graus16-Jan-07 20:50
protectorChristian Graus16-Jan-07 20:50 
GeneralRe: Get Words from .doc, .rtf, .htm Pin
Jason McBurney17-Jan-07 6:55
Jason McBurney17-Jan-07 6:55 
Questioninheritance problem? Pin
moize1216-Jan-07 14:28
moize1216-Jan-07 14:28 
imagine this ... i got a parent class , i got a sub class

public class parent

.... public properties and methods here

end class

public class subclass
inherits parent

....public properties and methods here

end class


Ok i declare the following
dim a as parent
a = new subclass

so far so good! but then the problem is that i cannot access my sub classes properties. only the parent classes properties are visible?

is there something i've missed?
how do i declare an object of type parent and still access the subclass properties.

I can store an object of subclass in a place set up to store objects of the parent class right? but then why can't i access the properties of the subclass?

i.e
Private _vehiclesInLane As New LinkedList(Of Vehicle)

dim v as vehicle
v = new car

_vehiclesInLane.AddFirst(v)

Ok so theres no errors here during compile! i can access the parent class properties but not the child ? how comes

I hope theres somebody who can help me... Thanks in advance Smile | :)



AnswerRe: inheritance problem? Pin
Christian Graus16-Jan-07 15:02
protectorChristian Graus16-Jan-07 15:02 
AnswerRe: inheritance problem? Pin
Guffa16-Jan-07 22:19
Guffa16-Jan-07 22:19 
AnswerRe: inheritance problem? Pin
Dave Sexton17-Jan-07 0:40
Dave Sexton17-Jan-07 0:40 
Questionmaxlength of textbox Pin
ctlqt1216-Jan-07 13:28
ctlqt1216-Jan-07 13:28 
AnswerRe: maxlength of textbox Pin
Christian Graus16-Jan-07 15:06
protectorChristian Graus16-Jan-07 15:06 
QuestionUpdating/Patching Pin
spelltwister16-Jan-07 13:27
spelltwister16-Jan-07 13:27 
QuestionWord.doc Pin
Anybloodyid16-Jan-07 11:39
Anybloodyid16-Jan-07 11:39 
AnswerRe: Word.doc Pin
shreekar16-Jan-07 17:49
shreekar16-Jan-07 17:49 
GeneralRe: Word.doc Pin
Anybloodyid16-Jan-07 23:10
Anybloodyid16-Jan-07 23:10 
GeneralRe: Word.doc Pin
shreekar16-Jan-07 23:17
shreekar16-Jan-07 23:17 
GeneralRe: Word.doc Pin
Anybloodyid17-Jan-07 3:15
Anybloodyid17-Jan-07 3:15 
QuestionPrice Break DataGrid Pin
penguin500016-Jan-07 11:38
penguin500016-Jan-07 11:38 
AnswerRe: Price Break DataGrid [modified] Pin
dptalt17-Jan-07 4:06
dptalt17-Jan-07 4:06 
QuestionPackaging problem.. dll file not found...how to add it... Pin
JustmeNick16-Jan-07 10:27
JustmeNick16-Jan-07 10:27 
AnswerRe: Packaging problem.. dll file not found...how to add it... Pin
Kschuler16-Jan-07 10:48
Kschuler16-Jan-07 10:48 
AnswerRe: Packaging problem.. dll file not found...how to add it... Pin
dptalt17-Jan-07 4:10
dptalt17-Jan-07 4:10 
GeneralRe: Packaging problem.. dll file not found...how to add it... Pin
JustmeNick17-Jan-07 4:21
JustmeNick17-Jan-07 4:21 

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.