Sign In
Calvin Hsia's WebLog
thoughts from a professional developer
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
64bit
C++
CSharp
Debugging
FunGames
History
LINQ
Memory
Mesh
Miscellaneous
Pictures
Programming
SmartPhone
Testing
VB
Vista
Visual FoxPro
Visual Studio
Web
Windows API
WPF
Archive
Archives
May 2012
(2)
March 2012
(1)
February 2012
(1)
January 2012
(1)
December 2011
(1)
November 2011
(1)
October 2011
(1)
September 2011
(1)
August 2011
(1)
July 2011
(1)
June 2011
(1)
May 2011
(1)
April 2011
(1)
March 2011
(1)
February 2011
(1)
January 2011
(1)
December 2010
(2)
November 2010
(1)
October 2010
(1)
September 2010
(1)
August 2010
(1)
July 2010
(1)
June 2010
(1)
May 2010
(1)
April 2010
(1)
March 2010
(2)
February 2010
(1)
January 2010
(1)
December 2009
(1)
November 2009
(1)
October 2009
(1)
September 2009
(1)
August 2009
(1)
July 2009
(1)
June 2009
(1)
May 2009
(1)
April 2009
(1)
March 2009
(2)
February 2009
(1)
January 2009
(2)
December 2008
(1)
November 2008
(1)
October 2008
(1)
September 2008
(1)
August 2008
(1)
July 2008
(3)
June 2008
(2)
May 2008
(2)
April 2008
(2)
March 2008
(2)
February 2008
(2)
January 2008
(2)
December 2007
(3)
November 2007
(8)
October 2007
(6)
September 2007
(4)
August 2007
(9)
July 2007
(2)
June 2007
(2)
May 2007
(11)
April 2007
(5)
March 2007
(2)
February 2007
(2)
January 2007
(1)
December 2006
(2)
November 2006
(1)
October 2006
(4)
September 2006
(6)
August 2006
(10)
July 2006
(13)
June 2006
(11)
May 2006
(7)
April 2006
(8)
March 2006
(14)
February 2006
(5)
January 2006
(21)
December 2005
(9)
November 2005
(19)
October 2005
(20)
September 2005
(12)
August 2005
(23)
July 2005
(12)
June 2005
(8)
May 2005
(7)
April 2005
(4)
March 2005
(1)
February 2005
(2)
January 2005
(13)
December 2004
(9)
November 2004
(4)
October 2004
(10)
September 2004
(4)
August 2004
(8)
July 2004
(1)
June 2004
(10)
June, 2006
MSDN Blogs
>
Calvin Hsia's WebLog
>
June, 2006
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Calvin Hsia's WebLog
Check for a valid datasource from within the correct datasession
Posted
over 6 years ago
by
CalvinH
1
Comments
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...
Calvin Hsia's WebLog
Can you read or seek from an embedded file?
Posted
over 6 years ago
by
CalvinH
2
Comments
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...
Calvin Hsia's WebLog
Why doesn't my form close?
Posted
over 6 years ago
by
CalvinH
9
Comments
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...
Calvin Hsia's WebLog
Use temporary projects in Visual Studio
Posted
over 6 years ago
by
CalvinH
13
Comments
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...
Calvin Hsia's WebLog
Specifying the size of the program cache
Posted
over 6 years ago
by
CalvinH
2
Comments
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...
Calvin Hsia's WebLog
Customizing the Blog Crawler for different formats
Posted
over 6 years ago
by
CalvinH
2
Comments
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...
Calvin Hsia's WebLog
How does EventHandler work? IConnectionPoint!
Posted
over 6 years ago
by
CalvinH
10
Comments
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...
Calvin Hsia's WebLog
The VB version of the Blog Crawler
Posted
over 6 years ago
by
CalvinH
19
Comments
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...
Calvin Hsia's WebLog
If your machine freezes, maybe you can reboot it gracefully from another machine
Posted
over 6 years ago
by
CalvinH
2
Comments
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...
Calvin Hsia's WebLog
Use conditional build events to freshen zip files in Visual Studio
Posted
over 6 years ago
by
CalvinH
40
Comments
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...
Calvin Hsia's WebLog
Error Reading File infinite loop if drive disabled while file open and Data Session window open
Posted
over 6 years ago
by
CalvinH
0
Comments
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...
Page 1 of 1 (11 items)