Threading with Java

Threads in Java can be very simple if you just stick to the basics. To run a thread in your class, you should implement the Runnable interface, and then place your thread code into the start(), stop() and run() methods. For example, you want to create a dialog that returns... [Read More]
Tags: java

C# - Drag and Drop Files

When coding drag and drop operations in C# Windows applications, you need to complete two steps. Firstly, add a DragOver event to your form in which you change the cursor over your target application so the user can see they will copy the dragged object on the form: [Read More]
Tags: c#

Invisible updates in a RichTextBox

If, for example you are extending the RichTextBox class in order to create a text editor, you might want to change the colour of certain words in a line. However, in order to do this you need to “Select” the text you want to change, which results in the control... [Read More]
Tags: c#