Please Help. Form inherits problem

  • Thread starter Thread starter Mat
  • Start date Start date
M

Mat

class Form1
inherits form
private sub initializecomponent
en sub

sub new()
mybase.new
initilializeComponent
end sub
end class


class form 2
inherits form1
private sub initializecomponent
en sub

sub new()
mybase.new
initilializeComponent
end sub
end class



Form2 failed to call its initializecomponent sub. its trying to call
form1.initializecomponent...
How to force it?
 
Mat said:
class Form1
inherits form
private sub initializecomponent
en sub

sub new()
mybase.new
initilializeComponent
end sub
end class


class form 2
inherits form1
private sub initializecomponent
en sub

sub new()
mybase.new
initilializeComponent
^^^^^some letters too much

Call
initializecomponent
instead.
 
* "Mat said:
class Form1
inherits form
private sub initializecomponent
en sub

sub new()
mybase.new
initilializeComponent
end sub
end class


class form 2
inherits form1
private sub initializecomponent
en sub

sub new()
mybase.new
initilializeComponent
^^^^^^^^^^^^^^^^^^^^^

What's that?
end sub
end class

Form2 failed to call its initializecomponent sub. its trying to call
form1.initializecomponent...
How to force it?

<http://msdn.microsoft.com/library/en-us/vblr7/html/vakeymyclass.asp>
 
Back
Top