devxlogo

Tip Bank

Unicode and the Watch Debugger Window

Managing Unicode strings (LPWSTR, BSTRs, etc.) is now a very common task. However, Visual Studio 6 does not allow you to view Unicode strings correctly in the watch window. It

Security101: MessageDigest Class

In Java, message digest is represented by “java.security.MessageDigest class”.All main classes in java.security package are instantiated using the factory method “getInstance()”.This method takes the String parameter, which is the name

Security101: MessageDigest

Message digest is a hash code of a byte sequence (message).It has certain properties that make it very unique and very useful: It has a fixed size (in bytes), which

Switch a Combo Box Sort from Alpha to Number

Don’t forget to turn off the .sorted property on the combo box before calling! ResortCboFromAlphaToNum cboAbcPublic Sub ResortCboFromAlphaToNum(cc As ComboBox) ‘resorts given combobox from alpha sort (usual) to numeric sort

A VB Code Generator

Sometimes you want to initialize arrays with values, but you can’t because you’d have to provide values explicitly. There is a way to generate these kinds of assignment statements.Say you

Lock Controls, Don’t Disable Them

You should lock controls (that have the .locked property) rather than setting .enabled = false.Why? Grey text in a disabled field is less readable. Also, blank fields give no indication