Browse by Tags

New year – new blog or how to migrate Community Server to any other engine, supports XML-RPC
Please update your bookmarks, because the new url of this blog is http://khason.net/ (you have not update RSS feeds, it will be done automatically). Why I did it? Why I decided to go to “stand-alone”… Well. there are some reasons. Generally, I do not...
Read and use FM radio (or any other USB HID device) from C#
Last time we spoke about reading and decoding RDS information from FM receivers . Also we already know how to stream sound from DirectSound compatible devices . However, before we can do it, we should be able to “speak” with such devices. So, today we...
Capturing and streaming sound by using DirectSound with C#
I already wrote a little about managed way to use DirectX DirectSound . Today we’ll speak about how to get sound from your microphone or any other DirectSound capturing device (such as FM receiver ) and stream it out to your PC speakers and any other...
Quick Silverlight (and WPF) tip: How to write program without XAML
From the moment, 10K MIX09 contest was lunched , I got more, then 20 people, asking the same question: Is it possible to have Silverlight program up and running without XAML at all? The answer is “ YES, IT IS ”. Here is how: All you need for run WPF or...
Reading and decoding RDS (Radio Data System) in C#
RDS or Radio Data System is very common in US and many European countries. It is communication protocol used to send small amount of digital information using regular FM radio broadcast. This protocol is used to "tell" your receiver about alternative...
Creating transparent buttons, panels and other control with Compact Framework and putting one into other
In WPF / Silverlight world it's very simple to make transparent controls and put anything inside anything. However, that's not the situation in WinForms, and even worth in the world of compact devices with CF. Within this worlds, there is only...
How to P/Invoke VarArgs (variable arguments) in C#? ... or hidden junk in CLR
Recently I wrote a cheat sheet for pinvoking in .NET . Shortly after I got a question in comments about how to deal with variable arguments, when it's more, then one parameter. Also what to do if those arguments are heterogeneous? Let's say, that...
Auto scroll ListBox in WPF
In WinForms era it was very simple to autoscroll listbox content in order to select last or newly added item. It become a bit complicated in WPF. However, complicated does not mean impossible. As for me, Microsoft should add this feature to base ListBox...
P/Invoke cheat sheet
I’m working a lot with p/invoke, and know how it’s hard to produce correct signature for unmanaged method. So, today I decided to publish basic cheat sheet for methods, parameters and attributes you should use in order to invoke unmanaged methods from...
Set binding, based on trigger
Let’s say, that you want to set binding. However, you want to set it by using some trigger. Wait! Why I need it? Let’s say, that I have some very special object, that actually has no hard-coded properties. All it’s properties are created during the runtime...
Visual Studio snippet designer
Chicks love CodePlex as well as Microsoft loves it too and today they release extremely useful tool, that was internal for more, then three years. It named: “ Visual Studio Snippet Designer ”. As you can, probably, understand. This tools is used to create...
A little bit about batteries
I tired to write about programming, code and similar nerd stuff. So today I’ll write about … batteries. How is it? :) Today, batteries are in use all over our life. We have a battery in our mobile phone, computer, camera, mp3 player, even microwave, alarm...
WGS to UTM, UTM to WGS conversions, geo distance, azimuth and other geographical calculations in C#
"The reports of my death are greatly exaggerated" Since my post about leaving consulting field , I got huge amount of email with questions about all community projects, I'm leading, blogging in general and specific to the future of this...
Configuring and running Mono ASP.NET 3.5 (AJAX.NET) on Linux computers
Before we will start, we should install Linux. To do this, you can download any of LiveCDs with live installation. Officially, Mono supported only on one free Linux - openSuse . However, you can make it work on any RedHat (and its alternatives), OpenSolaris...
Quick Silverlight tip: Why my ActualWidth and ActualHeight equal 0?
If you’ll try to use ActualWidth and ActualHight of controls with explicitly set Width and Height, you’ll not see any problem, however, if your control sits inside other control, ActualWidth and ActualHeight properties will be equal to 0. Why this and...
Next page »
Page view counter