inherited form
-
i am a begginer. so thanks if u answer my question in a simple way. i had a form and i wanna add an inherited form by write code. i dont know how?! and i dont know where the code should sit and placed!:thumbsup:
[]D @ []v[] []D @ []v[]
If you want to inherit a form from another form you do something like this (creates a new MyForm class inherited from System.Windows.Forms.Form):
public class MyForm : System.Windows.Forms.Form {
//Constructor, calls base constructor
public MyForm() : base() { }...
}This seems like a good tutorial to start with: .NET Tutorial for Beginners[^]
The need to optimize rises from a bad design.My articles[^]
-
i am a begginer. so thanks if u answer my question in a simple way. i had a form and i wanna add an inherited form by write code. i dont know how?! and i dont know where the code should sit and placed!:thumbsup:
[]D @ []v[] []D @ []v[]
Buy a book on C# and read it. However, what do you mean by 'add an inherited form by write code' ?
Christian Graus Driven to the arms of OSX by Vista.
-
If you want to inherit a form from another form you do something like this (creates a new MyForm class inherited from System.Windows.Forms.Form):
public class MyForm : System.Windows.Forms.Form {
//Constructor, calls base constructor
public MyForm() : base() { }...
}This seems like a good tutorial to start with: .NET Tutorial for Beginners[^]
The need to optimize rises from a bad design.My articles[^]
-
thanks mika, but i like to deal with someone like u to learn it better, if it's no problem. ;)
[]D @ []v[] []D @ []v[]
These forums are to help people who for example get stuck with a specific problem. All people expect that the person who asks a question has the basic knowledge about the environment he/she is working with. Many times people are given links to shortcuts or books that are very useful, but after that it's expected that the person reads the given information and tries to learn the environment (C# in this case). So in short the purpose of these forums is not to educate people starting from beginning, but to help people with specific, clearly asked questions. I'm sure that if you read the document I posted, you'll get a good start to C# inheritance along with other fields of programming in C#. Also you should consider buying a good book or two. Think of it like an investment to yourself.
The need to optimize rises from a bad design.My articles[^]
-
Buy a book on C# and read it. However, what do you mean by 'add an inherited form by write code' ?
Christian Graus Driven to the arms of OSX by Vista.
-
These forums are to help people who for example get stuck with a specific problem. All people expect that the person who asks a question has the basic knowledge about the environment he/she is working with. Many times people are given links to shortcuts or books that are very useful, but after that it's expected that the person reads the given information and tries to learn the environment (C# in this case). So in short the purpose of these forums is not to educate people starting from beginning, but to help people with specific, clearly asked questions. I'm sure that if you read the document I posted, you'll get a good start to C# inheritance along with other fields of programming in C#. Also you should consider buying a good book or two. Think of it like an investment to yourself.
The need to optimize rises from a bad design.My articles[^]
-
These forums are to help people who for example get stuck with a specific problem. All people expect that the person who asks a question has the basic knowledge about the environment he/she is working with. Many times people are given links to shortcuts or books that are very useful, but after that it's expected that the person reads the given information and tries to learn the environment (C# in this case). So in short the purpose of these forums is not to educate people starting from beginning, but to help people with specific, clearly asked questions. I'm sure that if you read the document I posted, you'll get a good start to C# inheritance along with other fields of programming in C#. Also you should consider buying a good book or two. Think of it like an investment to yourself.
The need to optimize rises from a bad design.My articles[^]