Posts

Showing posts from April 15, 2012

Find was Stopped in Progress Visual Studio

Image
Find was Stopped in Progress.
Visual Studio 2010.
Visual Studio 2005.

 Visual Studio has some known issues.  One of them is the inability to search something using Ctrl+Shift+F because of the following error:

"Find was stopped in progress".

DataSet HasTables Method

DataSet Extentions.
Add Methods to Objects.

So, it's getting me tired to always right:
     if (ds != null && ds.Tables.Count > 0)
to make sure that a certain dataset really has tables inside.

So here is an extension I added to the DataSet object:
publicstaticbool HasTables(thisDataSet ds)         {             if (ds != null && ds.Tables.Count > 0)                 returntrue;             returnfalse;         }
Simple, yet efficient :)

Elad Shalom,
CTO at ITweetLive.com

DataTable HasRows Method

DataTable Extentions.
Add Methods to Objects.

So, it's getting me tired to always right:
     if (dt != null && dt.Rows.Count > 0)
to make sure that a certain table really have rows.

So here is an extension I added to the DataTable object:
publicstaticbool HasRows(thisDataTable dt)         {             if (dt != null && dt.Rows.Count > 0)                  returntrue;             returnfalse;         }
Simple, yet efficient :)
Elad Shalom,
CTO at ITweetLive.com