Tag Archives: visual basic .net

Programming Blast from the Past: GameFAQs CodeUnit 28 DEC 2012

GameFAQsFound this little self-produced gem on an old USB disk lying in my drawer and thought it a good idea to post up here to try and save it for prosperity.

Basically, I wrote this handy little offline GameFAQs application to have FAQs close at hand back in the day when Internet Connection at home was non-existent and PS2 play time was plenty!

Essentially the application took a structured approach to storing text file FAQs which I would download from www.gamefaqs.com to mirror my at that time pretty large PS2 game collection.

Of course these days I don’t collect games and pretty much have a get rid of once done with policy in place, never mind the uncapped Internet Connection at home, thus relegating this little bit of application programming firmly into the realm of nostalgia.


Date/Time String Formatting Programming 14 MAY 2007

microsoft-.net-logoVisual Basic .NET is very flexible with regards to its date/time functions and functionality. Displaying or using the date/time in a format you wish to force upon the system is a fairly easy thing to do, most commonly achieved by using the Format(object, expression) functionality provided by Visual Basic .NET

Today I was searching for the switch to display split seconds in my formatted time string and I came across a great listing of all the DateTime format specifiers available to the system.

And so in order to preserve this find for myself, I’ve added the link here

The hassle in coding .NET for a large network which doesn’t trust you Programming 26 MAR 2007

microsoft-.net-logoFor the last couple of years .NET has crept in as my programming language of choice. It’s wonderfully simple, makes light of usually tedious programming tasks and has a lot of support on offer. From the start, the .NET framework had a security feature whereby un-trusted code would not be permitted to be executed from network locations. This is a wonderfully secure idea and is probably a very very good thing to have – unless of course you’re writing shared applications that need to be run from a network location on a large network.

Often we need to run a home-grown application from a Novell login script for all users. Now, my almost exclusive use of .NET doesnt go down well with this idea. Sure, all my code is signed by my personal strong encryption key-pair, but unfortunately apart from my development machine, no other machine on the network has my key installed, nor would anyone trust it. Which leaves me with only one real alternative: writing a distributor application in an older, less restrictive language and letting that execute the .NET application from a local drive.

So my solution is simple enough – whip up a quick and dirty application in VB6 or something similar which simply copies the .NET application from a network location to the local drive and then executes it from there.

Problem solved.

Control.CheckForIllegalCrossThreadCalls = False Programming 14 MAR 2007

microsoft-.net-logoAnd the answer to the meaning of life and everything else is

— Control.CheckForIllegalCrossThreadCalls = False —

Well, it is if youre converting Visual Basic .NET projects from Visual Studio 2003 to Visual Studio 2005. With the new .NET frameworks tighter control over cross thread controls calls, Visual Studio 2005 builds automatically throw errors on any cross thread calls that your old multi-thread applications perform – meaning a majority of your previously no problem software all of a sudden break down in a pretty annoying manner. However, thanks to the nifty little call above, your problems are solved – even if it seems like a cheap work around :)