Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » VB   (RSS)

Synchronize your files across machines with Mesh

I have a collection of almost 30,000 pictures and videos. When I add new pictures to the collection, I had been running a script file to synchronize the collection across various machines. for %%s in (\\calvinh6\e$ \\calvinh3\e$ \\calvinh4\e$) do ( robocopy
Posted by Calvin_Hsia | 4 Comments
Filed under: , ,

Magnify your pictures using a PictureBox so that you can zoom with the Mouse Wheel

Today’s digital cameras take pictures with much higher resolution than many computer screens. My Canon PowerShot SD800 IS camera takes pictures at 3072 x 2204 resolution. One of my laptops died recently, and I noticed that local laptop retailers have
Posted by Calvin_Hsia | 12 Comments
Filed under: , ,

Make your code more maintainable: The evils of the Return statement

What does it mean to make code more maintainable? Certainly obfuscated code is hard to understand, by definition. A big part of maintainability is making it easier for others to read and understand what the code is doing. Your code may have been working

A WPF version of the Typing Tutor game

In my prior post I show a Windows Form version of the typing tutor game. Here is a WPF version. Start Visual Studio 2008. Choose File->New->Project->VB->WPF Application. Dbl-Click the form in the designer to open the code window. Paste in
Posted by Calvin_Hsia | 2 Comments
Filed under: ,

The VB WinForm version of the typing tutor game

In this post, Create your own typing tutor! is code to create a game for learning the letters of the keyboard by typing the letters that fly across the screen. As times goes by, they fly faster. Below is a VB version of the game. Can you score higher
Posted by Calvin_Hsia | 1 Comments
Filed under:

Use a dictionary to help create a mnemonic

I was using a program that was yet another TLA and I wanted to create a mnemonic to help me remember what it was. One of the letters was “k”, so I wanted to find a word that starts with “k” Simple: load a dictionary, search for words starting with “k”

How fast is interop code?

How fast is interop code? If you’re in one kind of code and your calling another, what is the cost of the interop? For example, .Net code can call native C++ code (like Windows APIs) and vice versa. Similarly with Foxpro and C++ code. .Net code is often

How to interrupt your code

I received a question: Simply, is there a way of interrupting a vfp sql query once it has started short of closing down the process ? I am running some complex queries on very large datasets which can sometimes take many minutes to complete. Typically,
Posted by Calvin_Hsia | 6 Comments

Examine .Net Memory Leaks

Writing programs using .Net is very productive. One reason is because much of memory management is “managed” for you. In C, C++ and other “native” languages, if you allocate memory, you’re responsible for freeing it. There were stopgap measures, like

Persist user form size and location settings per session

My prior post ( Create your own Test Host using XAML to run your unit tests ) shows how to create a form and present it to the user. The user can resize and reposition the form, even on a 2 nd monitor. When the user exits the form, we can persist or remember

Create your own Test Host using XAML to run your unit tests

A few days ago, somebody came into my office and plopped down a box. It seemed very light. He said that it was a new PC. I thought hmmm…. The box seems empty…Why am I getting a new PC?. Apparently an inventory was made and my current hardware was at the

Find the Executing function's name

Often I want to write the SAME code that will display the name of the currently executing method or function. That way I can just copy/paste the same code into multiple methods. For example, in sub Form1_Load I could put this line: System.Diagnostics.Debug.WriteLine(
Posted by Calvin_Hsia | 4 Comments

Use Visual Studio Test framework to create tests for your code

While writing software over a period of weeks or months, various components of the software get completed at various times. You’ve tested and you’re satisfied they work, and you move on to develop another feature. Or you might check in the source code

Use XLINQ to query the references in your project

Visual studio creates project files for you for the various languages, such as C++, C#, VB. These files are XML format, and can thus be queried. Try this: open any non-temporary Visual Studio project (see Use temporary projects in Visual Studio ) , right
Posted by Calvin_Hsia | 2 Comments
Filed under: , ,

Uninstall VB6 causes error message: You do not have a license to use this control

I was running out of disk space on one of my machines, so I used my TreeMap program to see where I could delete files to save space. I saw that I still had VB6 on the machine, and I didn’t need it on that machine any more, so I uninstalled it. It's amazing
Posted by Calvin_Hsia | 2 Comments
More Posts Next page »
 
Page view tracker