Timer in WPF
In Windows Form time, there is a component for Timer. But in WPF, there is not such things. So, what thing we can do, when we need to execute a piece of code…
Read moreMy .Net Blog — posts in this category.
In Windows Form time, there is a component for Timer. But in WPF, there is not such things. So, what thing we can do, when we need to execute a piece of code…
Read moreI created an opensource project, AdvGenStopWatch. This is a simple stop watch program and aimed to show how to use WPF. Including the following features: - How…
Read moreI thought that is impossible to put your PC in sleep or hibernate via C#. I found that is incorrect! Moreover, that is very simple too, just one line of…
Read moreThis tutorial is to build a simple Windows Services. 1. Create a Windows Service Project, File->New->Project 2. Please add these codes into Services1.cs…
Read moreI have written an example project in C#. This example will shows how to use Mutex Lock. Moreover, it will demonstrate how to create a thread with parameters.…
Read moreI have been using ASP.Net for years. There is a very popup control, dropdown list. I used this control thousands of times. I know it very well. Recently, I…
Read moreGetting the row count of a table, that is easy in NHibernate. You can do it this way: ICriteria criteria = CurrentSession.CreateCriteria<Member>();…
Read moreI found the best way to learn a programming is reading example codes. So, I found this website,Microsoft All-In-One Code Framework, is very useful. Roughly, it…
Read moreI got a line of code like this: public class HibnerateRepository<TEntity, TId> : IRepository<TEntity, TId> ...... public IList<TEntity>…
Read moreSetting the Icon of a window in WPF is very simple! In your window xaml, you need to put the filename of your icon file in icon attribute, like the following:…
Read moreI was trying to align some buttons in the center of a windows form. I was tried to find any properties in a button can set it to be center aligned. But there is…
Read moreThat is a bit hard to write a mp3 player in C#. I think you may need to find third party mp3 decoder dll. But if you only want to play to a wav file, that is…
Read more