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
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
April 2013
(2)
March 2013
(1)
February 2013
(1)
January 2013
(1)
December 2012
(1)
November 2012
(1)
October 2012
(1)
September 2012
(1)
August 2012
(1)
July 2012
(1)
June 2012
(1)
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)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Calvin Hsia's WebLog
Create an ActiveX control using ATL that you can use from Fox, Excel, VB6, VB.Net
Posted
over 7 years ago
by
CalvinH
21
Comments
Creating an ActiveX control is a good exercise in understanding how one works. It also helps to have full control over its source code for learning and testing purposes. A customer asked about migrating legacy ActiveX controls over to .Net. Many controls...
Calvin Hsia's WebLog
Host the CLR and Generate IL to call a MessageBox
Posted
over 7 years ago
by
CalvinH
6
Comments
Here’s some C++ code to host the CLR. It’s an alternative to using COM Interop (s ee A Visual Basic COM object is simple to create, call and debug from Excel ), or using a User Control (see Create a .Net UserControl that calls a web service that acts...
Calvin Hsia's WebLog
Does the VFP ODBC driver support subdirectories?
Posted
over 7 years ago
by
CalvinH
6
Comments
I received a question from a customer: I don't know how to search for this but does ODBC, specfically Visual FoxPro support opening tables in a subdirectory? ODBC is very old.. OLEDb is much more recent. In any case, the answer is yes...
Calvin Hsia's WebLog
Various ways to display multiple photographs: Using Rects and thumbs
Posted
over 7 years ago
by
CalvinH
0
Comments
My prior post showed how to use an array of PictureBox controls to display multiple photographs on a form. Now we’ll do something similar, but instead of using the PictureBox control, which is a little bit heavyweight, we can just draw directly onto the...
Calvin Hsia's WebLog
Dynamically attaching a debugger
Posted
over 7 years ago
by
CalvinH
4
Comments
Sometimes something goes wrong with your program and you want to investigate why. You can start Visual Studio, choose Debug->Attach to Process and choose the process you want to debug. (The dialog also allows remote debugging and choosing Native, Managed...
Calvin Hsia's WebLog
Various ways to display multiple photographs: on a Fox form
Posted
over 7 years ago
by
CalvinH
3
Comments
My prior 2 posts show how to display multiple photos on a VB.Net form, first using the PictureBox control, the second drawing to the form directly. Below is some code to display multiple photos on a Fox form using an array of Fox Image controls . These...
Calvin Hsia's WebLog
Various ways to display multiple photographs
Posted
over 7 years ago
by
CalvinH
8
Comments
You can use an array of PictureBox controls to display multiple photographs or other images. The sample below subclasses the PictureBox control and puts an array of them on a form. You need to change the PixPath to point to a directory with your digital...
Calvin Hsia's WebLog
Problems reading and writing to the same file stream
Posted
over 7 years ago
by
CalvinH
1
Comments
I was helping a friend fix a problem that occurred in a VB.Net application. Upon inspection, an XML file was somehow invalid. The last few bytes were wrong. We found the code that modifies the file. It takes the original file, replaces a string...
Calvin Hsia's WebLog
Why Do ToolTips Appear in Task Manager?
Posted
over 7 years ago
by
CalvinH
1
Comments
I was asked why Tooltips appear in Task Manager . I happened to be out of the country when the question was asked, so I had to wait til I got back to the office to investigate. Sure enough, tooltips show up in Task Manager, under the Applications...
Calvin Hsia's WebLog
Bug: a readonly left-aligned textbox has a floating point number whose value changes
Posted
over 7 years ago
by
CalvinH
2
Comments
Here’s an interesting bug report. The code below shows two readonly textboxes on a form, both containing floating point values. The first is left-aligned. When you hit tab from the first textbox, the value changes from 4.011 to 4.000 If you change...
Page 1 of 1 (10 items)