Creating transparent buttons, panels and other control with Compact Framework and putting one into other

21 בנובמבר 2008

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 one way to make controls transparent - to use color masks. Today, we'll create transparent controls with Compact Framework and put it into panel, which has image background. So let's start. First of all, we need create our own control....
אין תגובות

How to P/Invoke VarArgs (variable arguments) in C#? … or hidden junk in CLR

19 בנובמבר 2008

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 we have following method in C: int VarSum(int nargs, ...){    va_list argp;    va_start( argp, nargs );    int sum = 0;    for( int i = 0 ; i < nargs; i++ ) {        int arg = va_arg(...
אין תגובות

Asus R50A UMPC review

13 בנובמבר 2008

So, I got new branded Asus R50A UMPC for test. This ultra mobile machine with 5.6" WSVGA (1024x768) screen, based on Intel US15W chipset, comes with Intel Atom Z520 (1.33 Ghz, 533Mhz) processor, 1Gb of RAM and 20GB SSD. Also it has 3.5G mobile unit, integrated 802.11b/g network card and GPS. First impression was very cool. Slick design, big screen build in fingerprint reader.   What in the box? Power adapter (110/220V), compact keyboard, bunch of cables, extra...

Consultants for charity

12 בנובמבר 2008

As you, probably, know, I left consulting field. However, it does not mean, that I quit helping developers community with client application development. Also, every day I'm getting between 50 and 300 emails with questions (I'm trying to answer all of those) and sometimes proposals for consulting. Currently I'm refusing all those, because I do not want to engage to it. However, there are too much people, who really need professional developers help and there are very few good development consultants...
5 תגובות

Auto scroll ListBox in WPF

10 בנובמבר 2008

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 implementation as another attempt to be attractive environment for LOB application. See, for example this thread from MSDN forums. I'm really understand this guy. He do not want to implement it with a lot...
תגובה אחת

Programming for Windows 7

9 בנובמבר 2008

Well, Windows 7 is going to be released by the end of next year. This is great news, because it seemed, that Microsoft finally understand how to get the best of Windows Vista and make it to work not only on monster machines. It even works on new brandy my wife's pinky machine. And if it works there and my wife is happy with it, this OS going to be very impressive. But from the other...