TagC#

Poweroff Timer application in Microsoft Store

Poweroff Timer is a windows universal application(UWP) in Microsoft Store written in C#. This application enables you to set a timer to shutdown your PC at a specific time. It makes your power management much easier and more convenient. When you assign the timer, PowerOff Timer will minimize in the system tray and run silently in the background. if you right-click on its icon, the menu that...

How to add Hotkeys/Shortcuts in WPF

In any application, hotkeys (shortcuts) are useful for navigation as well as to launch a control’s code, unfortunatelly Hotkeys in WPF are not as easy as in Windows Forms. In this post we will briefly present an example of how keyboard shortcuts can be used to execute commands using key bindings. What you will need is to create a new WPF window and follow the instructions below. Step 1: In...

Swirlhole, how far can you go?

Swirlhole, is an arcade game for android distributions. We can categorize it also as an endless runner game. This type of games has the characteristic that the world building by own also the player must dodge obstacles as they automatically and continuously scroll onto the screen, with the simple goal of not crashing into anything for as long as possible. The main architectonic is simple we put...

How to make a ring using torus method in Unity 3D

In Unity3d you have a plenty of choices to make several objects but, in case that you need to make an object like a ring where you can get through its center it’s difficult with the prebuild already objects (Sphere, cube, capsule etc) you probably should swivel in torus technique, of course, there are some other tips for example circles with particle systems. In geometry, a torus is a...

C# NuGet package with useful extension methods

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...

Custom C# WPF Window for seemless results in Windows 7/10

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...

J-Lock Encryption Tool

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...

C# Registry Keys Manager

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. public class Manager { public void addRegistry(string subkey, string name, string value) { if (Microsoft.Win32.Registry.GetValue(@""+subkey, name, null) == null) {...

Capturing screenshots using C#

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. public class Screenshot { public DateTime timestamp; public Bitmap bitmap; public Screenshot(DateTime timestamp, Bitmap bitmap) { this.timestamp = timestamp; this.bitmap = bitmap; } }...

Calling a method from a string in C# (dynamic method invocation)

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#. public void Execute(string methodName, object[] args) { if (GetType().GetMethod(methodName)) != null) { MethodInfo method = GetType().GetMethod(methodName); method.Invoke(this, new...

Categories

Tags