Creating a dynamical AutoComplete textbox

In my recent project we have had to implement a own textbox to be able to set a few properties that force the user to follow certain formats etc. A few days ago I saw this as an oppurtunity to do something cool as an additional feature.

I wanted to implement a AutoComplete feature but with the values that the user has typed in this field before. It turns out that this is fairly easy to do, since AutoComplete is a property on the TextBox control in the .NET Framework. Here is a nice video that introduce the concepts surrounding AutoCompletion

So how did I do it then? First I added a handling of the Resize-event that sets the autoComplete-properties.

Me.AutoCompleteMode = Windows.Forms.AutoCompleteMode.Suggest Me.AutoCompleteSource = Windows.Forms.AutoCompleteSource.CustomSource Me.AutoCompleteCustomSource = State.HamtaAutoCompleteLista(Me.Name)

State.HamtaAutoCompleteLista is a function that returns the AutoCompleteStringCollection that should be used for the control.

As you might notice...

Read More

Swedish brass band championships 2007 - follow-up

As I predicted the Swedish Brass band championships this year was mostly a formal matter when it comes the first places.

Windcorp of course took the top honors. They weren’t treated really when Stockholms Brass band didn’t show up. That Solna was second was not too surprising either.

After that it was quite open and I congratulate Malmö Brass band with the third place. And that Torsby was fourth was a real feat - well done Torsby and Berit Palmquist!

BK was a bit of a disappointment since they usually play very well. I had them as third in my prediction.

So there you have it - lets hope that Stockholm Brass band hangs in there for another year so that the competition will get exciting again. Windcorp right now is miles ahead of the rest of the field and that cannot be good...

Read More

VasaBand - my band!

I’ve just returned from a tour with my Salvation Army Band - the Vasa Band. What a great group of people.

We have had an amazing weekend with lots of fun, great fellowship and some really nice music making. The band makes me so proud - there are only we, we’re nothing special but together we make it special.

To see two twelve year olds playing their hearts out on the last bar of a big piece, or to hear great and insightful presentations from a lot of members, ranging from 16 to sixty years, or to take part in the prayers before and after the festivals - that makes me so proud!

What a band - thank you guys for a great weekend - lets make many more…

Read More

How do I - great instruction resource

During the last days I have run into more and more of the “How-do-I”-videos from Microsoft. They are really a great resource for getting fast introduction on a subject from everything to Silverlight to LINQ.

Here is the overview link: http://msdn2.microsoft.com/en-us/bb629407.aspx.

Below it you’ll find several different areas of interest. Here are my highlights:

Read More

Car!

For the first time in my life I am driving a new car. The picture below shows the trip-meter when I got the car…

It still feel like I have a rental but I think i’ll get used to the thought. Other than that this week will contain some (a lot) of preparations for the tour with the band starting Thursday. That will be great!

Read More

VasaKårens Jul

My corps, the Vasa corps of the Salvation Army, is gifted with many very good musical talents. For example Vasa Gospel, Vasas Granater (youth gospel) and the VasaBand.

Each year we get together and perform a Christmas concert. This year i am in a group that put that concert together. It will be on Nybrokajen 11 and will include the mentioned groups and also some guests, for example [Karl-Magnus Fredriksson](http://www.musiken.nu/).

It will be a magnificent concert and hopefully something to remember for a long time. You can, and should, buy ticket now: http://www1.ticnet.se/PriceTable?eventId=STH18094NYB12071

Go ahead - invite a friend or two. But hurry - it’s only 600 tickets all in all…

Read More

Visual Studio 2008 videos II

Here are some videos on Visual Studio 2008 that shows off some of the new capabilities of our new workplace - http://go.microsoft.com/?linkid=7642674

The voice of the guy doing the presentations is driving me mad (he sounds like the bad guy from Seven) but it works.

By the way - I’ve just downloaded SilverLight (runtime, i think) from Microsoft. And all of a sudden a lot of their pages looks so nice and has some really cool features.

Go ahead and get it now.

Read More

David Childs and the Hot Canary

A few weeks back the British National Brass Band Championship took place with Grimethorpe as winners for the second year running.

As always there was a short interlude-concert before the results was announced, this year with Black Dyke Band. One of the featured soloist was David Childs and his performance of Hot Canary just blew my mind! That dude really has control - not a slip, not a hint of bad intonation AND having fun. Thank you!

For the next week the performance is on the last weeks Listen to the band.

Read More