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();

Thursday, November 13, 2008

Download the Report Viewer Redistributable assemblies

hi ,
follow the below link it will works..

http://drowningintechnicaldebt.com/blogs/dennisbottjer/archive/2006/10/16/Hacking-Report-Viewer-Redistributable.aspx

or

follow steps:
1)Download Report Viewer Redistributable
2)Use favorite Zip Utility to extract the MSI.exe to a folder of your choice
3)Find the file ReportV1.cab in extract folder from step #2
4)Use favorite Zip Utility to extract ReportV1.cab to a folder of your choice
5)Open the new folder from step 4 and find 4 files
6)Rename: FL_Microsoft_ReportViewer_Common_dll_117718_____X86.3643236F_FC70_11D3_A536_0090278A1BB8 To Microsoft.ReportViewer.Common.dll
7)Rename: FL_Microsoft_ReportViewer_ProcessingObject_125592_____X86.3643236F_FC70_11D3_A536_0090278A1BB8 To Microsoft.ReportViewer.ProcessingObjectModel.dll
8)Rename: FL_Microsoft_ReportViewer_WebForms_dll_117720_____X86.3643236F_FC70_11D3_A536_0090278A1BB8 To Microsoft.ReportViewer.WebForms.dll
9)Rename: FL_Microsoft_ReportViewer_WinForms_dll_117722_____X86.3643236F_FC70_11D3_A536_0090278A1BB8 To Microsoft.ReportViewer.WinForms.dll
10)Copy these dlls to your smart client project and reference them
11)Now they will be part of the Smart Client's Build Output and Click Once Deployment

Monday, November 10, 2008

Build vs Rebuild

A very basic question from one collegaue....Difference between a Build & ReBuild in VS IDE?Build solution will build only those projects which are changed since the last build... It will not get the changes of the updated embedded resource files... Rebuild solution will cause everything to be rebuilt no matter whether it was changed or not...