S
Sebastian Lampka
Hi,
I would like to put on all my Forms a BackgroundImage. Because it is the
same one I want to
use Visual Inheritance. I am not sure why I have to create a DLL-Library for
my base Form in VS2005,
but this is what I did.
So somewhere in my base form I want to load the image, which should be a
relative path from Application.StartupPath.
Since I find myself in a DLL-Library I have no access to
Application.StartupPath.
My next thought was okay then I make my base class abstract (mustinherit)
and force the derived class to set the path
with a mustoverride method. Unfortunately I cannot set this class to
mustinherit, because the Designer has problems
to create the form.
Can somebody tell me what is the best way would be to solve this.
Thanks,
Sebastian Lampka
I would like to put on all my Forms a BackgroundImage. Because it is the
same one I want to
use Visual Inheritance. I am not sure why I have to create a DLL-Library for
my base Form in VS2005,
but this is what I did.
So somewhere in my base form I want to load the image, which should be a
relative path from Application.StartupPath.
Since I find myself in a DLL-Library I have no access to
Application.StartupPath.
My next thought was okay then I make my base class abstract (mustinherit)
and force the derived class to set the path
with a mustoverride method. Unfortunately I cannot set this class to
mustinherit, because the Designer has problems
to create the form.
Can somebody tell me what is the best way would be to solve this.
Thanks,
Sebastian Lampka