I appreciate your reply regarding this matter..
Can you give me the code that can help me solve the problem?
So in other words you didn't even try to do it yourself. You just posted your entire application thus far and hope someone else will code it for you. No. That's not going to happen.
If it's not important enough to you, to invest some of your own time to make an effort an *learn* ... then it has less importance to me. Let me be clear... It's not that I, or anyone here doesn't want to
help you. We would love to
help you. But I for one am not going to
write it for you. Helping means you make your best effort, and show what you have done in an effort to accomplish and learn... and someone hear will help you clean up issues.
Can anybody send me code to [...]
The Bytes
volunteers are not here to write your code for you. This is not a free homework service.
Bytes is very much a
"Give me a fish I eat for a day. Teach me to fish I eat for a lifetime" kind of place. Just giving you the code doesn't help you learn near as effectively as good old-fashioned trial and error.
Please research your problem before posting your question.
A great place start your research is the
MSDN library. This library is a bunch of articles and documentation provided by Microsoft about anything to do with .NET development. I recommend that you bookmark the resource for your future reference.
After you research, do some experimenting. Then if your trials aren't doing what you expect, post the code and relevant messages/errors and we'll see what we can do to point you in the right direction for making it work.
May I suggest picking up a basic C# introductory book? It's not that people here don't want to be helpful, but there is a certain amount of basic learning work that one should really take upon themselves before asking for help. There are so many great "How do I build my first application" tutorials on the web... There are dozens of "Learn C# in 21 days", "
My first C# program" books at your look book seller or even public library... Asking a forum, any forum, to hand-hold you through it is just redundant. In many ways it disrespects the people who have invested dozens of hours in the on-line tutorials and those that spent thousands of hours in authoring books.
Build a Program Now! in Visual C# by Microsoft Press, ISBN 0-7356-2542-5
is a terrific book that has you build a Windows Forms application, a WPF app, a database application, your own web browser.
C# Cookbooks
Are a great place to get good code, broken down by need, written by coding professionals. You can use the code as-is, but take the time to actually study it. These professionals write in a certain style for a reason developed by years of experience and heartache.
Microsoft Visual Studio Tip, 251 ways to improve your productivity, Microsoft press, ISBN 0-7356-2640-5
Has many, many great, real-world tips that I use all the time.
The tutorials below walk through making an application including inheritance, custom events and custom controls.
Building an application Part 1 Building an application part 2