Washed my mouth out too ... vb does that to me
You're welcome ... I learnt stuff too.
Note that I had the CommandFlags OR'd ; I've changed them to And'd
ie
& in C#
+ in VB <- [added] Can someone confirm this Please ?
There is both an & operator and an && operator.
I copied the help file below.
The & operator can function as either a unary or a binary operator.
Remarks
The unary & operator returns the address of its operand (requires unsafe context).
Binary & operators are predefined for the integral types and bool. For integral types, & computes the logical bitwise AND of its operands. For bool operands, & computes the logical AND of its operands; that is, the result is true if and only if both its operands are true.
The & operator evaluates both operators regardless of the first one's value.
&&
The conditional-AND operator ( &&) performs a logical-AND of its bool operands, but only evaluates its second operand if necessary.
oh . . . . you meant the vb didn't you? he he