Archive for the 'dotNet' Category

May 27 2008

Convert array of objects to array of strings

Published by turlach under dotNet

This is how to do it in one line in VB.NET. Very useful:

stringArray = Array.ConvertAll(Of Object, String)(objArray, AddressOf Convert.ToString)

No responses yet

Apr 01 2008

Combobox bug

Published by turlach under Visual Studio, dotNet, winforms

If you assign the same arraylist as a datasource for comboboxes on the same form they will appear to be linked together.

cbobox.datasource = al

I did not try to duplicate this effect but the solution I used was to iterate through the members of the arraylist and individually add items to the combobox.

For i = 0 to al.count-1

cbobox.list.add(al(i))

next

No responses yet

Sep 01 2007

Free ASP.NET hosting

Published by turlach under ASP.NET, Opinion, Visual Studio, dotNet

Came across this fresh posting at an MSDN blog about free ASP.NET developer hosting at Verio until Jan 2010. The price is right. In the late nineties, I was partner in a business that hosted with Verio, and was never happy with their service, but getting something for nothing is definitely a better deal.

No responses yet

Jul 27 2007

Disappearing events in Visual Studio 2003

Published by turlach under ASP.NET, Visual Studio, dotNet

Working in ASP.NET 1.1, I’ve been encountering a bug in VS2003 where event handlers are no longer allocated. e.g the “handles btnName.click” code disappears from the subroutine definition. One way to fix is to go back into the code and type the handler code, another to try re-clicking the control in the visual editor. I not the only one who has encountered this.

No responses yet