A swedish guy had a task to complete: he had 2 listboxes containing mammals and birds in one of the and some kind of mammals and birds in the other. Yes, we should show only relevant results in the second …
Tag: c#
Some guy asked a question: Is there any other way to use a routine on InitilizeCompent to handle all textboxes? So he wants to get away from typing a lot: no need to write the same event to all our …
Events Events are always implemented with delegates in C#. Publishing class defines a delegate, the subscribing class first creates a method that matches the delegate signature and then creates an instance of the delegate type encapsulating that method. Everytime an …
This topic is quite interesting for beginners too. You can often face the usage of delegates and of course: events. Delegates If you want to execute an action but you don’t know which method or object you’ll want to call …
Many of you asked me to write a simple “homework” for beginners. Now it’s time to write it down here, so anybody who’s now learning C# and don’t have idea what to code can do this one. Let’s create a …
I found an issue of a beginner developer on a forum about importing a CSV phonebook file into DataGridView and having some search option. First of all, I have created 2 forms: one for the main form one for adding …
In part 1 we created our Card class, in part 2 we created our Deck and Hand class. Now in this final part let’s create our form using all the classes we’ve done before. Create a new form with the …
Welcome back! The previous part has the class for the card, in this part we create the class for the deck. The deck contains the cards, 1 from each. Of course we have to shuffle the deck before every new …
The following tutorial is only some kind of “thought provoking” one: shows you some logic and class structure using enums and dynamically created images with Winform application. Maybe I skipped some of the official rules. If so, I’m sorry I’m …
What is Windows Service and what is it for? It is a computer program that operates in the background without any user interaction and user interface. After Windows XP there are several methods in Windows that protects itself from unwanted …