↓ Skip to Main Content
Useful code Programming with VBA, C# and Python

Main Navigation

  • All
  • VBA
    • VBA Tools
    • VBA Online Resources
    • All VBA articles
  • Python
  • Else
    • C#
  • Reviews
    • List of reviews
  • YouTube
  • PayPal
  • About
Useful code Programming with VBA, C# and Python

Off Canvas Menu

  • All
  • VBA
    • VBA Tools
    • VBA Online Resources
    • All VBA articles
  • Python
  • Else
    • C#
  • Reviews
    • List of reviews
  • YouTube
  • PayPal
  • About

Category: C Sharp Tricks

Why do Java developers wear glasses?
Because they do not C#.

C# – WPF – Voice Control Simple Snake Game

By Vitosh Posted on February 7, 2014 Posted in C Sharp Tricks Tagged with C#, simple snake, snake C#, snake game, voice control, WPF, wpf c#

As a beginner in WPF, I am trying to become really better in the subject by changing existing codes and adding some new features in it. This code simply adds a voice control feature of the snake WPF game from …

C# – WPF – Voice Control Simple Snake Game Read more »

C# – WPF – Flow Document – Document with C#

By Vitosh Posted on February 5, 2014 Posted in C Sharp Tricks Tagged with C#, Document with C#, Flow Document, FlowParagraph, WPF

With the current article I will show you how to create a simple application, presenting yourself. The most of the application is created in XAML. Roughly, it looks like this:   The text is from here. This application is really …

C# – WPF – Flow Document – Document with C# Read more »

C# – WPF – Dropdown menus & audio combination

By Vitosh Posted on February 4, 2014 Posted in C Sharp Tricks Tagged with audio, C#, code, combination, dropdown, dropdowns, WPF

In this article I present the combination of a drop-down menu and audio in a WPF application. Simply, the application’s logic is the following – you select one media file from a drop-down list and then you play it. The …

C# – WPF – Dropdown menus & audio combination Read more »

C# – WPF – Runtime and Command Binding of Labels

By Vitosh Posted on January 30, 2014 Posted in C Sharp Tricks Tagged with Binding, Binding of labels, C#, Runtime Binding, WPF

In the current article I will show how to bind elements in a small application. Two types of binding are presented – the so called (by me) runtime binding and command binding. The difference is that the runtime binding is …

C# – WPF – Runtime and Command Binding of Labels Read more »

C# – WPF – Changing styles in WPF (Setter Property usage / Style declaration in XAML)

By Vitosh Posted on January 29, 2014 Posted in C Sharp Tricks

With the current post I will present a simple application, which changes styles of buttons within WPF, based on our selection. In order to change the styles of the design, we define both styles as variables in the XAML code. …

C# – WPF – Changing styles in WPF (Setter Property usage / Style declaration in XAML) Read more »

C# – WPF – Application with two click buttons and two radio buttons

By Vitosh Posted on January 27, 2014 Posted in C Sharp Tricks

In this article I present a simple application with two buttons and two radio buttons. The idea is the following – each one of the two click buttons run a WAV file from the Windows ones. The radio buttons are …

C# – WPF – Application with two click buttons and two radio buttons Read more »

C# – WPF – Creating a browser with WPF

By Vitosh Posted on January 26, 2014 Posted in C Sharp Tricks

With this article I will show how to create a simple browser application with WPF (Windows Presentation Foundation). The browser is really just a simple one, with just four options: Back button, Forward button, History Chooser and Go Button. Before …

C# – WPF – Creating a browser with WPF Read more »

C# – Example of Class with Two Constructors – Video

By Vitosh Posted on January 22, 2014 Posted in C Sharp Tricks

Sometimes you should create more than one constructor for a class. This is a useful practice, if you need to generate objects of the same type which need to be initiated with different fields. In the current example, we generate …

C# – Example of Class with Two Constructors – Video Read more »

C# – Count Words in a Text – ABC Analysis for Linguists

By Vitosh Posted on January 12, 2014 Posted in C Sharp Tricks

Everyone knows that in the English language there are more than 100K words. As in any other language on Earth. The point is that we DO NOT use all of them in our every day life. We simply use about …

C# – Count Words in a Text – ABC Analysis for Linguists Read more »

C# – Execute function based on input type

By Vitosh Posted on January 4, 2014 Posted in C Sharp Tricks

It is probably interesting to many junior programmers to create different functions and to execute them, based on the code. In short something like: if (Z>Y) Then Function A Else Function B However, the things become more interesting, when we …

C# – Execute function based on input type Read more »

C# – Display Folder Contents with Console Application – Directory Info Usage

By Vitosh Posted on December 28, 2013 Posted in C Sharp Tricks

With the current console application we display the contents of a given folder. It is a little useless by itself, but the code has one good advantage – it shows perfect application of DirectoryInfo and some properties as .FullName & …

C# – Display Folder Contents with Console Application – Directory Info Usage Read more »

C# – LINQ – Where, OrderBy, Select

By Vitosh Posted on December 21, 2013 Posted in C Sharp Tricks

In the current code, we simply show how to use “OrderBy”, “Select” and “Where” in LINQ. If you want to know more about LINQ, you should refer to here. This time Microsoft has written a really good article about this. …

C# – LINQ – Where, OrderBy, Select Read more »

C# – Calculating square root with two classes

By Vitosh Posted on December 20, 2013 Posted in C Sharp Tricks

This program will calculate square root with two classes. It is really a fascinating program, due to the fact that it uses precalculation in the class SqrtPrecalculated. Thus, if you need plenty of calculations, once the values are precalculated it …

C# – Calculating square root with two classes Read more »

C# – Mutiverse Communication – problem from IT competition/exam

By Vitosh Posted on September 26, 2013 Posted in C Sharp Tricks

On the 14th September 2013 I was participating in a C# competition for advanced by Telerik Academy. After spending 5 hours, trying to solve 5 quite tough C# problems, I have obtained 140 points. With this result I was ranked …

C# – Mutiverse Communication – problem from IT competition/exam Read more »

C# – Extraction of Emails from a Text – Video

By Vitosh Posted on September 6, 2013 Posted in C Sharp Tricks

In this article I explain how to perform a simple task, which is usually given to administrators – extract e-mails from a text. Once, about 4 or 5 years ago I was given such a task and I lost about …

C# – Extraction of Emails from a Text – Video Read more »

C# – Check number and fill lists – Video

By Vitosh Posted on August 8, 2013 Posted in C Sharp Tricks

In this video I perform a check whether a number is an integer or a double. If it is double, it fills out a List<double>(); and if it is integer, it fills out a List<int>(); Once something is entered, which …

C# – Check number and fill lists – Video Read more »

C# – Random Password Generator – Video

By Vitosh Posted on August 7, 2013 Posted in C Sharp Tricks

I know a lot of people, having problems creating passwords. With the current code I will show you how to create a password using C#. The password consists of at least two capital letters, two small letters, a digit and …

C# – Random Password Generator – Video Read more »

C# – Quick Exchange Rate Calculator – Video

By Vitosh Posted on August 1, 2013 Posted in C Sharp Tricks

Hello All, I have created a small video, showing how to make use of the do-while loop for creation of small console applications. The interesting part of the code is the usage of the do-while loop, which executes the code …

C# – Quick Exchange Rate Calculator – Video Read more »

C# – Creating a Matrix – Video

By Vitosh Posted on July 24, 2013 Posted in C Sharp Tricks

I have just made my first YouTube video!In it I create a matrix and I fill it up, using different directions. The size of the matrix is read from the Console. Or with other words, if the number is 5, …

C# – Creating a Matrix – Video Read more »

C# – Arrays

By Vitosh Posted on July 19, 2013 Posted in C Sharp Tricks
C# – Arrays

This is part the first C# problem, from arrays, given at Telerik C# 2 courses. Check it out. The problem itself is put as comments in the first two lines. In general, one should write a simple console application, which …

C# – Arrays Read more »

Posts pagination

Previous 1 … 3 4 5

Copyright © 2026 VitoshAcademy