V
Vlado B.
Hello everyone!
Postoji li naèin da ovo bude ispravno i da se sve vidi u designeru?
Is this peace of code correct and if is, is there a way to see Form2 in
designer?
public abstract class Form1 : System.Windows.Forms.Form
{
....
protected abstract void Do();
....
}
public class Form2 : Form1
{
....
protected override void Do()
{
}
....
}
static void Main()
{
Application.Run(new Form2());
}
This works ok in runtime but if I want to see Form2 in designer I get this
error message:
The designer must create an instance of type 'Form1' but it cannot because
the type is declared as abstract.
TIA,
Vlado
Postoji li naèin da ovo bude ispravno i da se sve vidi u designeru?
Is this peace of code correct and if is, is there a way to see Form2 in
designer?
public abstract class Form1 : System.Windows.Forms.Form
{
....
protected abstract void Do();
....
}
public class Form2 : Form1
{
....
protected override void Do()
{
}
....
}
static void Main()
{
Application.Run(new Form2());
}
This works ok in runtime but if I want to see Form2 in designer I get this
error message:
The designer must create an instance of type 'Form1' but it cannot because
the type is declared as abstract.
TIA,
Vlado