Posts Tagged ".NET"

BozoSort Definitive (C++, C#, VB.NET, Java, PHP)

WARNING: PLEASE USE WITH EXTREME CAUTION! CONTENTS MAY BE FUNNY BUT NOT FOR PRODUCTION USE. Programmer Discretion is Advised! Hey you bozos out there, now there is a sort even for you! For those who don't know, a Bozo Sort is a joke sorting algorithm that actually sorts but at horrible timing and is very inefficient. It is good to see it at work from a theoretical stand point but it ...

Stair-step Table Access in VB.NET

There are various methods to access information in a table "lookup" structure. Indexed access, sequential access, etc but the type of access you go with always depends on the data. Many times on the board I have noticed people asking about setting up some type of scale. Most of them are usually working on a grading program of some sort. How does someone determine if the student got an A ...

Intro to A Regular Expression, a CSV Story

Regular expressions... sounds like a complicated term doesn't it? You better believe that when I drop the term at an office dinner party, others either immediately tune out or start saying "Oh hey so and so, good to see you" and then walk off pretending to say hi. Little do they know that the idea behind regular expressions is pretty simple and can actually make their lives easier. But hey, ...

Structs vs Classes in C#

Many times on the forum people have asked about the differences between structs and their big brother "classes". How do the two differ and where are they the same? How do I know when I need one or the other and why don't I just use classes all the time? We will attempt to explore the differences from a basic introductory standpoint so that the beginner can understand. We will ...

DIC Power Inc. – Where We Wire Up Controls in .NET

Every morning at the crack of dawn Skyhawk133 gets up to the sounds of the rooster crowing and puts on a pot of coffee. He has just enough time to take a shower and grab a quick bite before he is off to the Dream.In.Code (DIC) Power company to start the day of powering the worlds programming ideologists. The work day starts as normal where the DIC electricians and programming ...

Basic opening and reading files in VB.NET

File opening and reading into a form seems to be a bit of a tricky feat for the beginner VB.NET programmer. Along with all this is the open file dialog which could use some basic understanding as well. How does a beginner create it, configure it and show it to the user ? In this entry we will attempt to put a basic file opening and reading mechanism in place ...