Welcome to MSDN Blogs Sign in | Join | Help

June 2006 - Posts

Check for a valid datasource from within the correct datasession

Here’s an interesting one. You can use hotkey’s to type in certain strings for quick data entry. I do this for my Photo collection (see Sharing Digital Pictures of your friend's ) Run the code below. It creates a form with an editbox databound to a cursor.
Posted by Calvin_Hsia | 1 Comments
Filed under:

Can you read or seek from an embedded file?

Sometimes you might want to embed a file inside an exe. For example, if you add a file into a project and don’t mark it as Excluded, the file will be physically inserted inside the target EXE or APP. Visual Class Libraries (VCX files), Forms (SCX files),
Posted by Calvin_Hsia | 2 Comments
Filed under:

Why doesn't my form close?

If you run the code below, you’ll get an error message. The grid height is being set to 19, which is too small for a vertical scrollbar. Dismiss the message and try to close the form. If you hit Ctrl-F4 or click on the close box, the close box gets dim,
Posted by Calvin_Hsia | 9 Comments
Filed under:

Use temporary projects in Visual Studio

I like experimenting with code. I typically have no idea what my experiment will be called or what kind of project it will eventually become. In Visual FoxPro, you can start writing code or creating components such as tables, forms, reports, etc. without
Posted by Calvin_Hsia | 10 Comments
Filed under:

Specifying the size of the program cache

A customer asked 1) Is it better to set it to 0 (Auto) or some "larger" number, such as -16 (1024kb). I haven't found any information in the help files as to where the tradeoff lies between these, but presumably the default for MTDLLs of 128kb is deliberately
Posted by Calvin_Hsia | 2 Comments
Filed under:

Customizing the Blog Crawler for different formats

I’ve had several requests that require customizing the Blog Crawler. The entire source code of the Blog Crawler is available , so it can be modified to crawl blogs other than http://blogs.msdn.com Currently, it saves the entire HTML retrieved from a blog’s
Posted by Calvin_Hsia | 1 Comments
Filed under: ,

How does EventHandler work? IConnectionPoint!

The EventHandler function allows you to connect some code to an object’s event interface. For example, Word allows you to run code when the user changes the Selected text in a document . An ADODB Recordset will fire events, such as WillMove and MoveComplete
Posted by Calvin_Hsia | 9 Comments
Filed under: ,

The VB version of the Blog Crawler

This is the VB.Net 2005 version of the Blog Crawler. It’s based on the Foxpro version , but.it uses SQL Server Everywhere so you can deploy it on your mobile device! It crawls a blog and stores all entries into a SQL Server Everywhere table. This includes
Posted by Calvin_Hsia | 17 Comments
Filed under: ,

If your machine freezes, maybe you can reboot it gracefully from another machine

For some reason, one of my machines running Windows XP seemed to die while I was away at a meeting. I could still see all the applications I had left running on the desktop. The physical connections seemed to be fine, but any mouse move or keystroke was
Posted by Calvin_Hsia | 2 Comments
Filed under:

Use conditional build events to freshen zip files in Visual Studio

I wanted to update a couple zip files of the VB version of my Blog Crawler (to be posted soon) with the latest and greatest when I built the Release version of a project. I used the XCOPY command with the /D option to update only if changed. Copying to
Posted by Calvin_Hsia | 40 Comments
Filed under: , ,

Error Reading File infinite loop if drive disabled while file open and Data Session window open

If you have a file open on some drive (perhaps a USB or network drive) and the Data Session window open, try disconnecting the drive somehow. Perhaps yank the network cable, pull the USB drive even though Windows says not to, or even move out of wireless
Posted by Calvin_Hsia | 0 Comments
Filed under:
 
Page view tracker