Tag

C#

Browsing

The FlowLayoutPanel shares many of an ordinary panel control. They ultimately serve the same purpose, which is to organize children controls. In other words, is a container control that provides dynamically layout for the child controls. However, the stock version of the toolbox has some major limitations in terms of performance. For that reason the following minor modifications can improve your flowlayout panel’s performance, especially if you want to add a large amount of child…

In this article, I would like to mention benefits of using “Extension Methods” and provide a Nuget Package containing some of them. This feature started to be available in C # 3.0 compilers and continued in further versions (C# 4.0); it is very important for all developers especially if you would like to use the dynamism of the C# enhancements to take place in your class design. How to Create a simple Extension Method? Simply, create…

Sometimes as developers we have to face the windows versioning problem. Fortunately there are only very few cases where the problem is in the functionality part of our application however this does not apply to the GUI. As you may known already, there is a huge difference in the way that the different versions of windows handle the Graphics. For that reason there are some workarounds you may find in StackoverFlow etc.. to reduce (and…

Sometimes there is a necessity to deliver your applications in a simple and fast way.  However, creating a whole installer project for just a few assemblies is not the optimal solution, and packaging up a zip file must be accompanied by “Unzip this into a folder in your programs directory and create a shortcut…” which brings us back to the whole installer business we started with. Having those reasons in mind (and several other of…

J-Lock Encryption Tool is a windows application dedicated to securely encrypt your files. The encryption algorithm that is utilized in this software is well know AES. For the most of the security, this application does not store any password (beware that there is no recovery of the file(s) in case you loose you password). For more information please contact us at: apps[at]devcoons.com. The full version of this application is available in Microsoft Store:  https://www.microsoft.com/en-us/store/p/j-lock-encryption/9nddldh0fz1g Below are…

Usually an application needs to save or retrieve data from windows registry. For this reason a registry manager class is required. The following code snippet provides a simple yet effective way for handling windows registry keys.

What is the right way to take screenshots using C#? It’s certainly possible to grab a screenshot using the .NET Framework. The following code snippet provides a C# class for capturing and saving screenshots.

We are often used to call methods dynamically. You can invoke methods of a class instance using reflection, doing a dynamic method invocation. The following code snipped presents an easy way of invocation in C#.

What is invocation? For a method invocation, the primary-expression of the invocation-expression must be a method group. The method group identifies the one method to invoke or the set of overloaded methods from which to choose a specific method…