Posts

Showing posts from 2015

UK Bank Account Modulus Checker

I've often wondered how people know it the bank account and sort code are correct.  Turns out they do a modulus check in the UK, as detailed on the VocaLink  website. I thought I'd write something to do the checking too. It can be found here :- UK Bank Account Modulus Checker

Change the Order of TabPages in a TabControl in C#

There seems to be no way to easily change the order of TabPages in a TabControl in C#. If there is a way to visually re-order them, then I can't find it. However, some sources seem to suggest that the only way to do it are to move the controls off the TabPage, put them somewhere safe, then delete and re-add the TabPage to the TabControl.  I don't like this approach, through - I don't want to delete anything. I think I found a way around this, but requires some careful editing of files. If your form is called MyForm, you should have 3 files in the solution's folder :- MyForm.cs MyForm.Designer.cs MyForm.resx Open MyForm.Designer.cs in NotePad (or similar) Locate the line where your TabPage is instantiated :- this.pagWantThisAsLast = new System.Windows.Forms.TabPage(); and move it below the other TabPage() items. The form will create them in that order.

Google PacMan Maps - please leave it, don't be an April Fool

Image
Google Maps has an awesome feature today.  Go to and road map.  A new icon appears :- Click the icon, and if the roads are suitable enough, you get a PacMan game of the area :- How fantastic is this?  If this is just for April Fools, I'll be upset, as you can get a unique layout for PacMan.

Cat Scarer Product Association

Image
Love the product association here.

Direct Cars Traffic Lights Down

Been a while since I've seen these fail.  Bright, sunny day, but cold.

Open Containing Folder in Outlook

I got increasingly frustrated in Outlook when after a search I couldn't find the email item I was looking at in its original folder.  I could see the folder if I added the column to the search results, but didn't know where that folder was in my directory tree.  So if you have more than one "done" folder or something, it can be hard to find. To solve this (as it was no different in Outlook 2013 and I'd be wanting this for some time) I came up with the following code to Show the path to the folder Open that folder, so that the folder contents can be seen. In effect, this is an Open Containing Folder for Outlook.  Enjoy. Sub GoToFolder()     Dim loThisEmail As MailItem, loInspector As Inspector     Dim loFolder As Folder          Set loInspector = Application.ActiveInspector          If loInspector Is Nothing Then         MsgBox "No active inspector"     Else         Set loThisEmail = loInspector.CurrentItem