I have been working on several basic projects in Visual Basic.NET since taking my class. All have a requirement for user information such as Name, Address, State, Phone Number, Zip Code, Email, ect… One of my forms requires a minimum of 3 places to put the State in. Since I want the state information to be a constant format I need combo boxes. I figured there had to be an easier way or .NET function for the lists of US states. Apparently there is not a simple .NET function for this, so I began searching for a way to make it easy to populate a combo box or other control from a premade list of states.
On my wife’s blog (2SecondsFaster.com) we put up a “Saturday Mixer” and it is a weekly “you take over the conversation” post. As a joke, I thought I would put the post rules up in VB.NET code. Below is my code for a simple Console App.
- Module saturdayMixer
- Sub Main()
- Dim saturdayMixer As String
- Console.WriteLine("Do you know the rules? (y or n)")
- saturdayMixer = Console.ReadLine()
- ' saturdayMixer = Console.ReadLine()
- If saturdayMixer = "y" Then
- Console.WriteLine("Welcome to the Saturday Mixer!" & ControlChars.CrLf _
This has been a heck of a week. I went to the corporate office and had my computer rebuilt. It is horrible being without a computer for a couple days. On top of that I have a heavy class load for school, so I got behind. It is hard to learn to code and only have the book to look at. You need Visual Studio to actually learn from playing with code!
Here is the benchmarks of the new computer verses my old Gateway and my wife’s HP dv9000 laptop. Click the image to get a large view. I used PassMarks’ Performance Test (x64) and the Windows Experience Index to generate the following results.
You can click on the images to get a large image to make it more readable.
Windows Experience Index
New PC (5.9) vs Old PC (2.0) Windows Experience Index. The old PC’s rating comes from the Intel integrated graphics. It is funny that the new PC’s slowest performance rating was the highest on the old PC.
