this.Cursor = Cursors.WaitCursor;
ListsListBox.Items.Clear();
//Get a context
using (ClientOM.ClientContext ctx =
new ClientOM.ClientContext(UrlTextBox.Text))
{
//Get the site
ClientOM.Web site = ctx.Web;
ctx.Load(site);
//Get Lists
ctx.Load(site.Lists);
//Query
ctx.ExecuteQuery();
//Fill List
foreach (ClientOM.List list in site.Lists)
{
ListsListBox.Items.Add(list.Title);
}
//Return the cursor to normal
this.Cursor = Cursors.Default;
}This code client object model for retrieve all the list from current site.
