Avatar of jagguy
jagguy
Flag for Australia

asked on 

inherit controls

I am inheriting  this procedure from 2 classes.. The problem is I get an error because I am adding a control 2 times.

How do i get around this ?It looks like I cant inherit controls

 

class1

  Public Overridable Sub loadEquationInput()
        Canvas.SetLeft(tb6, 200)
        Canvas.SetTop(tb6, 45)
        canvas1.Children.Add(tb6)
..

class2 inherits class1

  Public Overrides Sub loadEquationInput()
        MyBase.loadEquationInput()

 

class3 inherits class1

Public Overrides Sub loadEquationInput()
        MyBase.loadEquationInput()
Visual Basic.NETC#

Avatar of undefined
Last Comment
Nasir Razzaq

8/22/2022 - Mon