Information générale
Titre:
Inheriting from a base form (C#)
HI,
I am trying to inherit from my base form class. I added an ihnerited form to my project. The problem is that I cannot set the startup object into the project properties. I do not have a combo available in order to pick a form.
I tried to setup a main() method into the form but when I try to run it, VC# tells me :
"File or assembly name MyBaseForm, or one of its dependencies, was not found."
Usually, when I create a regular windows form app, I do not have to add the Main method and the project runs just fine. Do I need to add a Main method into the base form (applcation.run...)?
Thank you for your help,
Christian
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement