Welcome to MSDN Blogs Sign in | Join | Help

July 2006 - Posts

How to display a list of files in a grid

I received a question from a customer: I am trying to find a way to display a grid of files (specifically DBF files) and show them in the order they were created with the dates and file sizes. I just took the sample code from Add a slider control to your
Posted by Calvin_Hsia | 6 Comments
Filed under:

Playing around with custom mouse cursors

Try running the code below. It creates a form and adds all the various types of baseclass controls to it. Then it adds a grid and adds a column for each control type. For each control it adds tooltips and custom mouse pointers. Move your mouse over the
Posted by Calvin_Hsia | 2 Comments
Filed under:

What was that strange character? The mystery deepens

In my last post, What's that funny character? , I asked about a particular character. In fact, another mystery character can occur. Embarassingly, SET CARRY ON was set on my machine when I ran the code, and I didn’t add it to the sample. It’s off normally
Posted by Calvin_Hsia | 4 Comments
Filed under: ,

What's that funny character?

Run this code: CREATE CURSOR foo ( line c( 100 )) LIST STRUCTURE TO t.txt APPEND FROM t.txt sdf GO RECNO ()- 1 FOR i = 1 TO LEN ( TRIM ( line )) ?i, SUBSTR ( line ,i, 1 ), ASC ( SUBSTR ( line ,i, 1 )) ENDFOR It produces t.txt which looks like this: Structure
Posted by Calvin_Hsia | 10 Comments
Filed under: ,

National Public Radio Car Talk

You may have heard a radio show on National Public Radio called Car Talk hosted by Tom and Ray Magliozzi, aka Click and Clack. It’s a call in show, where audience members call in with their car problems, and Click and Clack offer advice in a humorous
Posted by Calvin_Hsia | 2 Comments
Filed under:

Off to the races!

One of our customers writes software for drag racers (see Fox helps drag racer win Microsoft Start Something Amazing Award ). His software helps the drag racer keep track of opponent statistics as well as how a car performs from race to race. He invited
Posted by Calvin_Hsia | 8 Comments
Filed under:

Analyzing Blog hit statistics

It takes a lot of work to create the blog posts and code samples that I put in my blog, and I was curious about getting more detailed statistics about the posts. I already aggregate some statistics for Microsoft Bloggers (see What is a Microsoft MVP?
Posted by Calvin_Hsia | 2 Comments
Filed under: ,

Add a slider control to your TreeMap to vary how much detail is shown

I was running really low on disk space on one of my machines, so I ran my Treemap utility on it (see What is taking up the space on your hard disk? TreeMap it! ). Then it occurred to me that I can improve the utility by adding a slider control to show
Posted by Calvin_Hsia | 7 Comments
Filed under:

Use a different kind of grid in your applications

My prior post ( Create a .Net UserControl that calls a web service that acts as an ActiveX control to use in Excel, VB6, Foxpro ) shows how to create a .Net control that you can use in VFP or VB6 that takes advantage of the .Net framework. Here’s an example

Create a .Net UserControl that calls a web service that acts as an ActiveX control to use in Excel, VB6, Foxpro

Here’s how you can use Visual Studio to create a .Net User Control that will act as an ActiveX control that can be used in Excel (or other Office application), VB6 or Foxpro. This will bring the power of the entire.Net Framework to your program. This
Posted by Calvin_Hsia | 23 Comments

SmartPhone running low on memory due to Storage Card recognition

For some reason, my SmartPhone was giving me a message that memory was full. I hadn’t done anything to it to cause this: no new software installation or configuration, so I investigated a little further. A few of my applications didn’t work either: a
Posted by Calvin_Hsia | 2 Comments
Filed under:

Handling arbitrary strings in URLs: Escape, InternetCanonicalizeUrl, WinHttpCrackUrl and URI.EscapeUriString

Sometimes a web application might want to put arbitrary strings into a URL, and make it a valid URL. The VBScript and JScript escape and unescape functions do just that. This sample shows how to use VBScript to escape and unescape a string. The escaped
Posted by Calvin_Hsia | 3 Comments

How do I turn off the User Interface in an unattended application?

Sometimes you run a program and you don’t want it to show any dialogs or User Interface at all. For example, if a dialog normally occurs in a program, you would rather not have the application show a MessageBox with the error because that could hang the
Posted by Calvin_Hsia | 1 Comments
Filed under:
 
Page view tracker