Wednesday, September 8, 2010

Index was out of range (Lazy Initialization bug)

Index was out of range. Must be non-negative and less than the size of the collection.


Visual Studio stops on the following line in the Designer.cs file for the form:

base.Dispose(disposing);

It happens in one of the case when a Form contains a Tabcontrol with two tab pages and the second page has the Gridview . After opening the form ,when we try to close the form without going to the second tab gives the error.

This looks like a classic lazy initialization bug. The workaround is crude but effective:


private void
TestForm_Load(object sender, EventArgs e) {
this.tabControl1.SelectedIndex = 1;
this.tabControl1.SelectedIndex = 0;
}





Sunday, July 4, 2010

XBMC

XBMC Media Center (which was formerly named Xbox Media Center) is a free and open source cross-platform media player and home entertainment system software,the user interface designed for the living-room TV.

Its graphical user interface is easily to manage video, photos, podcasts, and music from a computer, optical disk, local network, and the internet using a remote control.

It is a popular alternative to Microsoft's Windows Media Center and Apple's Front Row, similar to MediaPortal and MythTV, and has a skinnable and user-configurable interface and plugin support.

XBMC was originally created as a media center application for the first-generation Xbox game console but is now, since 2010, officially only available as a native application for Linux, Mac OS X (Snow Leopard, Leopard, Tiger, Apple TV), and Microsoft Windows operating systems.

check the download link for the XBMC:

njoy..

Sunday, May 9, 2010

Ubuntu- Operating system

hi guyz..

Ubuntu is an operating system built by a worldwide team of expert developers.

It contains all the applications you need. Web browser, office suite, media apps, instant msging and much more..Ubuntu is an open-source alternative to windows and office..

Its easy to install and use, if you have more than one hard drive in you are pc then you can keep multiple O/S in your system.

get the installer from the following link :


try it on... I think you guyz are really like it..

Thursday, February 4, 2010

How to set a song from my music as ringtone in Iphone



Iphone does not accepts to set our music as a ring tone, its only allows to download ringtones from Itunes.

And Iphone supports only m4r format to set a ringtone.

we can convert our music to m4r format and import as a ringtone to our Itunes..

check the link below:

Thursday, January 14, 2010

Get the sorted table from the DataTable


sourceTable.DefaultView.Sort="columnName ASC";

DataTable sortedTable=sourceTable.DefaultView.ToTable();