Welcome to MSDN Blogs Sign in | Join | Help

May 2007 - Posts

Help->About->System Info doesn't work on Vista

A customer (thanks Grady!) reported that choosing Help->About->System Info on Vista causes a MessageBox to display “Microsoft System Info cannot be found or run.” Why is that? Simple investigation: run Regedit on WinXP and Vista to inspect this

SQL Select puzzle to count failures and totals for each item

Suppose I have a table of 2 columns. One is the name of an item, the other a value indicating Failure or Success. Can I create a single SQL statement to get a result with 3 columns: Name, # of Total occurrences, # of Failed occurrences ? Sample data:
Posted by Calvin_Hsia | 19 Comments
Filed under:

The VB version of the Flip Task Bar for Vista Desktop Window Manager

In this post: Create your own Flip Task Bar with live thumbnails using Vista Desktop Window Manager DWM , I showed Fox code on creating your own Flip Task bar Here is the VB.Net version that does the same thing… File->New->Project->Visual Basic->Windows->Windows
Posted by Calvin_Hsia | 4 Comments
Filed under: , , ,

Write Fox code in Visual Studio that interacts with your VB.Net code

Run the Fox code in Allowing Optional parameters in your COM objects (or the one in Blogs get 300 hits per hour: Visual FoxPro can count. ) to create a versatile Fox server called T1.DLL. You can use that server in VS to execute Fox code. The VB.Net sample
Posted by Calvin_Hsia | 1 Comments

Allowing Optional parameters in your COM objects

It’s simple to create a VFP object that can be used within other applications. I show how useful it is in Blogs get 300 hits per hour: Visual FoxPro can count. That sample builds the T1.C1 object that uses methods with multiple parameters. T1.C1 is a
Posted by Calvin_Hsia | 3 Comments

How to schedule your computer to run tasks automatically

Our building will have a power failure at a particular time. You may want your computer to stay on til just before the power goes out due to various reasons: It may be a web or file server serving other clients around the world. You may want to access
Posted by Calvin_Hsia | 6 Comments
Filed under:

What is Vista Aero?

I received a question regarding some of my recent posts on Vista : Forgive my ignorance, but where is Vista Aero. I cannot find it in Vista Ultimate nor have I found it on the MS web pages I’m sorry: I should have been more clear. Vista Aero is the new
Posted by Calvin_Hsia | 3 Comments
Filed under:

Create your own Flip Task Bar with live thumbnails using Vista Desktop Window Manager DWM

The sample below uses Desktop Window Manager under Windows Vista with Aero to get dynamic live thumbnails of running applications. If a movie is playing in Windows Media Player, it will play in the thumbnail too! EnumChildWindows or EnumWindows is used

Vista Aero DWM seems to optimize out GDI paint calls

In this post: Foxpro Menu items, combo boxes not refreshing selected item under Aero in Vista I describe a problem in Foxpro where menu and list items that are supposed to be non-selected aren’t painted correctly. I described a workaround: call the GdiSetBatchLimit

Fun with Vista Aero using the DwmExtendFrameIntoClientArea

You can have a little fun with Vista Aero using the DwmExtendFrameIntoClientArea function. This will cause the VFP border to paint the glass effect around the fox border DECLARE integer DwmExtendFrameIntoClientArea IN dwmapi integer hWnd , string @ daMargins

Windows Vista Aero BorderStyle Paint problem as non Administrator

Above is an image of an inner form (from the C++ project below) before and after I dragged it a little bit up and left to obscure the title bar, then back to the original position. You can see the title, icon, close/minimize buttons were not painted correctly.
 
Page view tracker