Hands-On Lab. Lab: Client Object Model. Lab version: Last updated: 2/23/2011
|
|
- Nathan Warren
- 6 years ago
- Views:
Transcription
1 Hands-On Lab Lab: Client Object Model Lab version: Last updated: 2/23/2011
2 CONTENTS OVERVIEW... 3 EXERCISE 1: RETRIEVING LISTS... 4 EXERCISE 2: PRINTING A LIST... 8 EXERCISE 3: USING ADO.NET DATA SERVICES... 13
3 Overview Lab Time: 45 minutes Lab Folder: C:\Student\Labs\06_ClientOM Lab Overview: The Client Object Model extends the familiar server-side object model to the client. The Client Object Model comes in three flavors:.net, JavaScript and Silverlight. The.NET model can be used with console applications and Windows applications, while the Silverlight client object model can be used from within Silverlight applications. The JavaScript model is used in client scripting. In this lab, you ll make use of the different Client Object Models to build different applications. Note: Lab Setup Requirements This lab requires the OpenXML 2.0 SDK to be installed. This should already be installed on your student VM. Before you begin this lab, you must run the batch file named SetupLab06.bat. This batch file creates a new SharePoint site collection at the location
4 Exercise 1: Retrieving Lists In this exercise you will create the first part of a Windows application for printing SharePoint lists as Word documents. You will retrieve the available lists from a SharePoint site using the.net Client Object model. 1. If you haven t already done so, run the batch file named SetupLab06.bat, found in the c:\student\labs\06_clientom\ folder, to create the new site collection that will be used to test and debug the code you will be writing in this lab. This batch file creates a new site collection at an URL of 2. Launch Internet Explorer and navigate to the top-level site at Take a moment to inspect the site and make sure it behaves as expected. Note that the setup script creates a new site collection with a Blank site as its top-level site. 3. Launch Visual Studio In Visual Studio, start a new project by selecting File» New» Project. 5. In the New Project dialog, expand the nodes Visual C#/Visual Basic» Windows and select Windows Forms Application. Make sure that Framework 3.5 is selected. 6. Name the new project ListPrinter and click the OK button. 7. Add a reference to the Client Object Model by selecting Project» Add Reference from the Visual Studio main menu. In the References dialog, on the.net tab select both the Microsoft.SharePoint.Client and Micorosoft.SharePoint.Client.Runtime compontents. Click OK. Note: if you cannot find these in the.net tab, Browse to C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\isapi and select the following assemblies, then click OK to add the references to the project: C# Microsoft.SharePoint.Client.dll Microsoft.SharePoint.Client.Runtime.dll 8. Drag a TextBox control onto Form1. You ll use this TextBox to specify the Url for the site where you want to access list data. Set the Name property to UrlTextBox. 9. Drag a ListBox control onto Form1. You ll use this to show the lists available from the site. Set the Name property to ListsListBox. 10. Drag a Button control onto Form1. You ll use this button to connect with the site and fill the ListBox. Change the Text property of this button to Show Lists and the Name property to ShowButton.
5 11. Set the Form1 Text property to Client Object Model. 12. You can optionally drag additional labels onto the form to make it look like the following: Figure 1 Design the user interface of the form 13. Double-click the Button control to open the code window. To avoid ambiguous references between the Client Object Model and the Windows Forms namespace, add the following statement to the top of the code module. C# using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using ClientOM = Microsoft.SharePoint.Client; VB.NET Imports ClientOM = Microsoft.SharePoint.Client 14. Enter the following code in the ShowButton_Click event to retrieve the available lists from the target site. C# private void ShowButton_Click(object sender, EventArgs e) //Show the hourglass wait cursor this.cursor = Cursors.WaitCursor; ListsListBox.Items.Clear(); //Get a context
6 VB.NET 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; Private Sub ShowButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles ShowButton.Click 'Show the hourglass wait cursor Me.Cursor = Cursors.WaitCursor ListsListBox.Items.Clear() 'Get a context Using ctx As New ClientOM.ClientContext(UrlTextBox.Text) 'Get the site Dim site As ClientOM.Web = ctx.web ctx.load(site) 'Get Lists ctx.load(site.lists) 'Query ctx.executequery() 'Fill List For Each list As ClientOM.List In site.lists ListsListBox.Items.Add(list.Title) Next 'Return the cursor to normal Me.Cursor = Cursors.[Default] End Using End Sub 15. Run your project, enter in the TextBox control and click the Show Lists button. Verify that you are returning lists from the site. Note: If you get an error when the ClientContext calls ExecuteQuery(), try navigating to the site in the browser first, then rerun the code.
7 Figure 2 The.NET Client object model in action 16. Stop the project and return to Visual Studio. Note: In this exercise you created a Windows Forms application that used the SharePoint Client Object Model to query a SharePoint site for all the lists in the site and display them in a listbox.
8 Exercise 2: Printing a List In this exercise you will finish the application by using a combination of the Client Object model and the Open XML 2.0 SDK for Office to create a Word document that contains list items from a selected list. This exercise requires that the OpenXML 2.0 SDK is installed. 1. Using the same Windows Form application from the previous exercise, drag a new Button control to Form1. This second button will be used to create a Word document from the items in a selected list. 2. Change the Text property for the Button to Print List. Change the Name property to PrintButton 3. Add a reference to the OpenXML SDK 2.0 API by selecting Project» Add Reference from the Visual Studio main menu. a. In the References dialog, set a reference to DocumentFormat.OpenXML. If this does not show up on the.net references tab, you will have to browse to the C:\Program Files (x86)\openxml SDK\v2.0\lib directory. b. Add another reference to WindowsBase.dll assembly by following the same steps. Again, if this does not show up on the.net references Tab, browse to C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0 and select to set a reference to WindowsBase.dll. 4. When Form1 open in Design mode, double click the Print List button to open the code window. 5. Add the following statements to the top of the code module to use the Open XML 2.0 API. C# using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using ClientOM = Microsoft.SharePoint.Client; using DocumentFormat.OpenXml; using DocumentFormat.OpenXml.Packaging; using DocumentFormat.OpenXml.Wordprocessing; Visual Basic Imports ClientOM = Microsoft.SharePoint.Client Imports DocumentFormat.OpenXml Imports DocumentFormat.OpenXml.Packaging
9 Imports DocumentFormat.OpenXml.Wordprocessing 6. Add the following code to the Click event of the Print List button to retrieve the columns and list items that you will need to build the document. C# private void PrintButton_Click(object sender, EventArgs e) if (ListsListBox.SelectedIndex > -1) //Context using (ClientOM.ClientContext ctx = new ClientOM.ClientContext(UrlTextBox.Text)) //Get selected list string listtitle = ListsListBox.SelectedItem.ToString(); ClientOM.Web site = ctx.web; ctx.load(site,s => s.lists.where(l => l.title == listtitle)); ctx.executequery(); ClientOM.List list = site.lists[0]; //Get fields for this list ctx.load(list,l => l.fields.where(f => f.hidden == false && (f.canbedeleted == true f.internalname == "Title"))); ctx.executequery(); //Get items for the list ClientOM.ListItemCollection listitems = list.getitems(clientom.camlquery.createallitemsquery()); ctx.load(listitems); ctx.executequery(); Visual Basic // DOCUMENT CREATION CODE GOES HERE MessageBox.Show("Document Created!"); Private Sub PrintButton_Click(ByVal sender As Object, ByVal e As EventArgs) _ Handles PrintButton.Click If ListsListBox.SelectedIndex > -1 Then 'Context Using ctx As New ClientOM.ClientContext(UrlTextBox.Text) 'Get selected list Dim listtitle As String = ListsListBox.SelectedItem.ToString()
10 Dim site As ClientOM.Web = ctx.web ctx.load(site, Function(s) s.lists.where(function(l) l.title = listtitle)) ctx.executequery() Dim list As ClientOM.List = site.lists(0) 'Get fields for this list ctx.load(list, Function(l)l.Fields.Where(Function(f) f.hidden = False _ AndAlso (f.canbedeleted = True _ OrElse f.internalname = "Title"))) ctx.executequery() 'Get items for the list Dim listitems As ClientOM.ListItemCollection =list.getitems(clientom.camlquery.createallitemsquery()) ctx.load(listitems) ctx.executequery() ' DOCUMENT CREATION CODE GOES HERE End Using MessageBox.Show("Document Created!") End If End Sub Note: The Open XML formats use a set of XML documents to represent all of the components of an Office 2007 document. These components are referred to as parts. Parts are designated through content type URI s (not to be confused with SharePoint content types!). So, the process of creating a Word document involves the proper creation and packaging of the required parts. The OpenXML 2.0 SDK makes it easier to create these parts because it provides strongly-types objects from which you can build a document. The document you will create will contain a table with columns for each field in the list. 7. Add the following code into your project to build the document. C# private void PrintButton_Click(object sender, EventArgs e)... ctx.load(list.items); ctx.executequery(); //Create the document using (WordprocessingDocument package = WordprocessingDocument.Create("c:\\" + istslistbox.selecteditem.tostring() + ".docx", WordprocessingDocumentType.Document))
11 Body body = new Body(); Table table = new Table(); //Columns TableRow colrow = new TableRow(); foreach (ClientOM.Field field in list.fields) TableCell colcell = new TableCell(); colcell.append(new Paragraph(new Run(new Text(field.Title)))); colrow.append(colcell); table.append(colrow); //Rows foreach (ClientOM.ListItem item in listitems) TableRow datarow = new TableRow(); foreach(clientom.field field in list.fields) TableCell datacell = new TableCell(); string dataval = string.empty; try dataval =item[field.internalname].tostring(); catch dataval = "-"; datacell.append(new Paragraph(new Run(new Text(dataVal)))); datarow.append(datacell); table.append(datarow); body.append(table); //Build document package package.addmaindocumentpart(); package.maindocumentpart.document = new Document(body); package.maindocumentpart.document.save(); package.close(); MessageBox.Show("Document Created!");
12 Visual Basic Private Sub PrintButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles PrintButton.Click ctx.load(list.items) ctx.executequery() ' DOCUMENT CREATION CODE GOES HERE 'Create the document Using package As WordprocessingDocument = WordprocessingDocument.Create("c:\" + ListsListBox.SelectedItem.ToString() & ".docx", WordprocessingDocumentType.Document) Dim body As New Body() Dim table As New Table() 'Columns Dim colrow As New TableRow() For Each field As ClientOM.Field In list.fields Dim colcell As New TableCell() colcell.append(new Paragraph(New Run(New Text(field.Title)))) colrow.append(colcell) Next table.append(colrow) 'Rows For Each item As ClientOM.ListItem In listitems Dim datarow As New TableRow() For Each field As ClientOM.Field In list.fields Dim datacell As New TableCell() Dim dataval As String = String.Empty Try dataval = item(field.internalname).tostring() Catch dataval = "-" End Try datacell.append(new Paragraph(New Run(New Text(dataVal)))) datarow.append(datacell) Next table.append(datarow) Next
13 body.append(table) Document(body) 'Build document package package.addmaindocumentpart() package.maindocumentpart.document = New package.maindocumentpart.document.save() package.close() End Using End Using MessageBox.Show("Document Created!") End If End Sub 8. Once you have finished coding, verify that the project compiles and starts it in Visual Studio by building and running it [Ctrl] + [F5]. You should be able to enter a URL for a site and retrieve the lists for the site. Then select a list from the site and print it. A new Word document will appear in the root of the C:\ drive having a name that is the title of the selected list. (Note: as we do not have much data on this site, the documents created will likewise not have much data in them. One list that has a couple of entries on it is the Web Part Gallery, if you wish to see some data in your word document try selecting this one to Print) Note: In this exercise you added code to the existing Windows Forms application that prints the contents of a SharePoint list to a Word document using the OpenXML 2.0 SDK. Exercise 3: Using ADO.NET Data Services
14 In this exercise you will create an application using ADO.NET Data Services. This exercise requires the installation of ADO.NET Data Services version 1.5 (CTP2). You should also have completed Lab 5 LINQ to SharePoint because you will reuse the lists from that lab in this exercise. 1. In Visual Studio 2010, create a new project by selecting File» New» Project. 2. In the New Project dialog, expand the nodes Visual C#/Visual Basic» Windows and select Windows Form Application. Pay attention that the Framework 3.5 is selected. 3. Name the new project ProjectManagers and click the OK button. 4. When the new project opens, right-click the References node in the Solution Explorer and select Add Service Reference. 5. In the Add Service Reference dialog, enter the URL for the ListData Web Service. This service is available through the ListData.svc endpoint. You can create a URL for the service by appending _vti_bin/listdata.svc to the URL for the site you created in a previous lab (e.g., 6. Once you have located the ListData service, change the namespace in the Add Service Reference to MyDataService. Then click the OK button. Note: When Visual Studio makes the service reference, it uses the functionality found in System.Data.Service.Client. However, you need to replace this reference with a reference to Microsoft.Data.Services.Client, which is part of the ADO.NET Data Services 1.5 CTP2. Figure 3 The System.Data.Services.Client reference 7. Right click the System.Data.Services.Client reference in the Solution Explorer and select Remove from the menu. 8. Right click the References node in the Solution Explorer and select Add Reference. 9. In the Add Reference dialog, click the Browse tab. Navigate to C:\Program Files (x86)\ado.net Data Services V1.5 CTP2\bin. Add a reference to Microsoft.Data.Services.Client.dll.
15 Figure 4 Add a reference to the Microsoft.Data.Services.Client Note: In addition to replacing the client-side assembly, you must also make new proxy classes for your project. This is because Visual Studio does not use the proxy creation capability found in ADO.NET Data Services 1.5 CTP2. You can make the new proxies using a command-line utility. 10. Open a command window and change the directory to C:\Program Files (x86)\ado.net Data Services V1.5 CTP2\bin. 11. At the command prompt, type the following to generate new proxy classes: C# DataSvcUtil.exe /uri: /language:csharp /out:reference.cs Visual Basic DataSvcUtil.exe /uri: /language:vb /out:reference.vb 12. Copy the new file Reference.cs (found in the same directory where the DataSvcUtil.exe was executed) over existing file with the same name in the MyDataService folder of your project. Your project is now all set to use the new ADO.NET Data Services. 13. In Visual Studio open the Data Sources window by selecting Data» Show Data Sources from the menu. In this window, you should see the lists available on the SharePoint site.
16 Figure 5 The Data Sources window Note: If you don t see data sources listed in the Data Sources window, right-click the MyDataService reference in the Solution Explorer and select Update Service Reference. If you do this, make sure you go back and remove the reference to System.Data.Services.Client that was re-added by Visual Studio. 14. In the Data Sources window, click the Add New Data Source button (left-most button). 15. In the Data Source Configuration Wizard, select Object and click the Next button. 16. On the Select Data Objects screen, expand the ProjectManagers treeview. Select EmployeesItem and ProjectsItem and click the Finish button.
17 Figure 6 The Data Source Configuration Wizard 17. Drag the ProjectsItem data source from the Data Sources window and drop it on the Windows form. This action will create a grid on the form. Figure 7 Drag and drop the ProjectItems data source
18 18. Right click the grid and select Edit Columns from the context menu. Remove all of the columns except for Title, and Description. Then click the OK button. 19. To work with LINQ in SharePoint, you need to add a reference to a new assembly. Do this with the following steps: a. Select Project» Add Reference from the Visual Studio main menu. 20. In the Add Reference dialog, on the.net tab select Microsoft.SharePoint.Linq and click the OK button. (Note: if you cannot find it here, Browse to c:\program Files\Common Files\Microsoft Shared\web server extensions\14\isapi and select Microsoft.SharePoint.Linq.dll. Then click the OK button. 21. Open the code window for the form and add the following statements to the top of the code module. C# using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Microsoft.SharePoint.Linq; using System.Net; Visual Basic Imports Microsoft.SharePoint.Linq Imports System.Net 22. Add code to create a context object so that your project matches the following. C# namespace ProjectManagers public partial class Form1 : Form public Form1() InitializeComponent(); //Context MyDataService.Lab5UsingLINQToSharePointDataContext ctx = new MyDataService.Lab5UsingLINQToSharePointDataContext(new Uri( "
19 Visual Basic Public Class Form1 'Context Private ctx As New MyDataService.Lab5UsingLINQToSharePointDataContext(New Uri(" End Class Note: If you encounter an error after having typed in MyDataService, remove the complete statement and type Lab5UsingLINQToSharePointDataContext. Right-click this and choose Resolve. Click on the suggested using statement. 23. In the Form1_Load event, add the following code to bind the list items to the grid. If the Form1_Load event doesn t exist, go back to the Design and double-click the form to create it. C# private void Form1_Load(object sender, EventArgs e) ctx.credentials = CredentialCache.DefaultCredentials; var q = from p in ctx.projects select p; this.projectsitembindingsource.datasource = q; Visual Basic Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ctx.credentials = CredentialCache.DefaultCredentials Dim q = From p In ctx.projects _ Select p Me.projectsItemBindingSource.DataSource = q End Sub 24. Run the project now and you should see some results in the grid. 25. Return to Visual Studio. Open Form1 in Design view and right-click the save icon on the form and select Enabled from the context menu.
20 Figure 8 Configure the data source 26. Now add the following code to your project to enable saving the changes you make in the grid. C# private void projectsitembindingnavigatorsaveitem_click(object sender, EventArgs e) ctx.savechanges(); private void projectsitembindingsource_currentchanged(object sender, EventArgs e) ctx.updateobject(this.projectsitembindingsource.current); Visual Basic Private Sub projectsitembindingnavigatorsaveitem_click(byval sender As System.Object, ByVal e As System.EventArgs) ctx.savechanges() End Sub Private Sub projectsitembindingsource_currentchanged(byval sender As System.Object, ByVal e As System.EventArgs) ctx.updateobject(me.projectsitembindingsource.current) End Sub 27. Go back to the Design view, right click the Save button and select Properties. This will open the Properties tool window. In the Click event, select projectsitembindingnavigatorsaveitem_click.
21 Figure 9 Bind the click event to the SaveItem event handler 28. In the drop down at the top of the Properties tool window, change the selection from projectsitembindingnavigatorsaveitem to projectsitembindingsource. In the CurrentChanged event, select projectsitembindingsource_currentchanged. Figure 10 Bind the CurrentChanged event to the event handler 29. Run the project again and make a few changes to the existing items clicking the Save button when finished (make sure you change the focus so the control knows there are changes to a specific item). Now open the browser and go find the item you just changed to see if in fact your changes were persisted.
22 Note: In this exercise you utilized ADO.NET Services to retrieve and update items within a SharePoint list.
A SharePoint Developer Introduction. Hands-On Lab. Lab Manual HOL5 Using Client OM and REST from.net App C#
A SharePoint Developer Introduction Hands-On Lab Lab Manual HOL5 Using Client OM and REST from.net App C# Information in this document, including URL and other Internet Web site references, is subject
More informationHands-On Lab. Lab 05: LINQ to SharePoint. Lab version: Last updated: 2/23/2011
Hands-On Lab Lab 05: LINQ to SharePoint Lab version: 1.0.0 Last updated: 2/23/2011 CONTENTS OVERVIEW... 3 EXERCISE 1: CREATING LIST DATA... 3 EXERCISE 2: CREATING ENTITIES USING THE SPMETAL UTILITY...
More informationHands-On Lab. Lab 11: Enterprise Search. Lab version: Last updated: 2/23/2011
Hands-On Lab Lab 11: Enterprise Search Lab version: 1.0.0 Last updated: 2/23/2011 CONTENTS OVERVIEW... 3 EXERCISE 1: CUSTOMIZING SEARCH CENTER... 4 EXERCISE 2: CREATING A CUSTOM RANKING MODEL... 14 EXERCISE
More informationHands-On Lab. Lab 02: Visual Studio 2010 SharePoint Tools. Lab version: Last updated: 2/23/2011
Hands-On Lab Lab 02: Visual Studio 2010 SharePoint Tools Lab version: 1.0.0 Last updated: 2/23/2011 CONTENTS OVERVIEW... 3 EXERCISE 1: CREATING A SHAREPOINT 2010 PROJECT... 4 EXERCISE 2: ADDING A FEATURE
More informationYou can call the project anything you like I will be calling this one project slide show.
C# Tutorial Load all images from a folder Slide Show In this tutorial we will see how to create a C# slide show where you load everything from a single folder and view them through a timer. This exercise
More informationADO.NET 2.0. database programming with
TRAINING & REFERENCE murach s ADO.NET 2.0 database programming with (Chapter 3) VB 2005 Thanks for downloading this chapter from Murach s ADO.NET 2.0 Database Programming with VB 2005. We hope it will
More informationHands-On Lab. Lab 13: Developing Sandboxed Solutions for Web Parts. Lab version: Last updated: 2/23/2011
Hands-On Lab Lab 13: Developing Sandboxed Solutions for Web Parts Lab version: 1.0.0 Last updated: 2/23/2011 CONTENTS OVERVIEW... 3 EXERCISE 1: CREATING THE VISUAL STUDIO 2010 PROJECT... 3 EXERCISE 2:
More informationCALCULATOR APPLICATION
CALCULATOR APPLICATION Form1.cs using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;
More informationHands-On Lab. Getting Started with Office 2010 Development. Lab version: Last updated: 2/23/2011
Hands-On Lab Getting Started with Office 2010 Development Lab version: 1.0.0 Last updated: 2/23/2011 CONTENTS OVERVIEW... 3 Starting Materials 3 EXERCISE 1: CUSTOMIZING THE OFFICE RIBBON IN OFFICE... 4
More informationIBSDK Quick Start Tutorial for C# 2010
IB-SDK-00003 Ver. 3.0.0 2012-04-04 IBSDK Quick Start Tutorial for C# 2010 Copyright @2012, lntegrated Biometrics LLC. All Rights Reserved 1 QuickStart Project C# 2010 Example Follow these steps to setup
More informationHands-On Lab. Lab: Installing and Upgrading Custom Solutions. Lab version: Last updated: 2/23/2011
Hands-On Lab Lab: Installing and Upgrading Custom Solutions Lab version: 1.0.0 Last updated: 2/23/2011 CONTENTS OVERVIEW... 3 EXERCISE 1: CREATING THE INITIAL PROJECT... 4 EXERCISE 2: MODIFY THE PROJECT...
More informationTo start we will be using visual studio Start a new C# windows form application project and name it motivational quotes viewer
C# Tutorial Create a Motivational Quotes Viewer Application in Visual Studio In this tutorial we will create a fun little application for Microsoft Windows using Visual Studio. You can use any version
More informationCOOKBOOK Sending an in Response to Actions
2011 COOKBOOK Sending an Email in Response to Actions Send an Email Let s expand the capabilities of the context menu in Customers grid view. We will add a new option, seen below, which will execute a
More informationExperiment 5 : Creating a Windows application to interface with 7-Segment LED display
Experiment 5 : Creating a Windows application to interface with 7-Segment LED display Objectives : 1) To understand the how Windows Forms in the Windows-based applications. 2) To create a Window Application
More informationSavoy ActiveX Control User Guide
Savoy ActiveX Control User Guide Jazz Soft, Inc. Revision History 1 Revision History Version Date Name Description 1.00 Jul, 31 st, 2009 Hikaru Okada Created as new document 1.00a Aug, 22 nd, 2009 Hikaru
More informationHow to use data sources with databases (part 1)
Chapter 14 How to use data sources with databases (part 1) 423 14 How to use data sources with databases (part 1) Visual Studio 2005 makes it easier than ever to generate Windows forms that work with data
More informationThe Open Core Interface SDK has to be installed on your development computer. The SDK can be downloaded at:
This document describes how to create a simple Windows Forms Application using some Open Core Interface functions in C# with Microsoft Visual Studio Express 2013. 1 Preconditions The Open Core Interface
More informationDeveloping for Mobile Devices Lab (Part 1 of 2)
Developing for Mobile Devices Lab (Part 1 of 2) Overview Through these two lab sessions you will learn how to create mobile applications for Windows Mobile phones and PDAs. As developing for Windows Mobile
More informationConventions in this tutorial
This document provides an exercise using Digi JumpStart for Windows Embedded CE 6.0. This document shows how to develop, run, and debug a simple application on your target hardware platform. This tutorial
More informationFOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources
FOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources This application demonstrates how a DataGridView control can be
More informationCreate your own Meme Maker in C#
Create your own Meme Maker in C# This tutorial will show how to create a meme maker in visual studio 2010 using C#. Now we are using Visual Studio 2010 version you can use any and still get the same result.
More informationToolkit Activity Installation and Registration
Toolkit Activity Installation and Registration Installing the Toolkit activity on the Workflow Server Install the Qfiche Toolkit workflow activity by running the appropriate SETUP.EXE and stepping through
More informationCSIS 1624 CLASS TEST 6
CSIS 1624 CLASS TEST 6 Instructions: Use visual studio 2012/2013 Make sure your work is saved correctly Submit your work as instructed by the demmies. This is an open-book test. You may consult the printed
More informationForm Properties Window
C# Tutorial Create a Save The Eggs Item Drop Game in Visual Studio Start Visual Studio, Start a new project. Under the C# language, choose Windows Form Application. Name the project savetheeggs and click
More informationStart Visual Studio and create a new windows form application under C# programming language. Call this project YouTube Alarm Clock.
C# Tutorial - Create a YouTube Alarm Clock in Visual Studio In this tutorial we will create a simple yet elegant YouTube alarm clock in Visual Studio using C# programming language. The main idea for this
More informationDeveloping Intelligent Apps
Developing Intelligent Apps Lab 1 Creating a Simple Client Application By Gerry O'Brien Overview In this lab you will construct a simple client application that will call an Azure ML web service that you
More informationNow find the button component in the tool box. [if toolbox isn't present click VIEW on the top and click toolbox]
C# Tutorial - Create a Tic Tac Toe game with Working AI This project will be created in Visual Studio 2010 however you can use any version of Visual Studio to follow along this tutorial. To start open
More informationSharePoint 2010 Developmnet
SharePoint 2010 Developmnet Delavnica Uroš Žunič, Kompas Xnet 165 VSEBINA DOKUMENTA LAB 01 GETTING STARTED WITH SHAREPOINT 2010... 3 LAB 02 VISUAL STUDIO SHAREPOINT TOOLS... 31 LAB 04 SHAREPOINT 2010 USER
More informationActivating AspxCodeGen 4.0
Activating AspxCodeGen 4.0 The first time you open AspxCodeGen 4 Professional Plus edition you will be presented with an activation form as shown in Figure 1. You will not be shown the activation form
More informationArtOfTest Inc. Automation Design Canvas 2.0 Beta Quick-Start Guide
Automation Design Canvas 2.0 Beta Quick-Start Guide Contents Creating and Running Your First Test... 3 Adding Quick Verification Steps... 10 Creating Advanced Test Verifications... 13 Creating a Data Driven
More informationThis walkthrough assumes you have completed the Getting Started walkthrough and the first lift and shift walkthrough.
Azure Developer Immersion In this walkthrough, you are going to put the web API presented by the rgroup app into an Azure API App. Doing this will enable the use of an authentication model which can support
More informationWe are going to use some graphics and found a nice little batman running GIF, off course you can use any image you want for the project.
C# Tutorial - Create a Batman Gravity Run Game Start a new project in visual studio and call it gravityrun It should be a windows form application with C# Click OK Change the size of the to 800,300 and
More informationHands-On Lab (MBL04) Lab Manual Incorporating COM Objects into Your.NET Compact Framework 2.0 Application
Hands-On Lab (MBL04) Lab Manual Incorporating COM Objects into Your.NET Compact Framework 2.0 Application Please do not remove this manual from the lab Information in this document is subject to change
More informationClick Studios. Passwordstate. Remote Session Launcher. Installation Instructions
Passwordstate Remote Session Launcher Installation Instructions This document and the information controlled therein is the property of Click Studios. It must not be reproduced in whole/part, or otherwise
More informationStart Visual Studio, start a new Windows Form project under the C# language, name the project BalloonPop MooICT and click OK.
Start Visual Studio, start a new Windows Form project under the C# language, name the project BalloonPop MooICT and click OK. Before you start - download the game assets from above or on MOOICT.COM to
More informationEngr 123 Spring 2018 Notes on Visual Studio
Engr 123 Spring 2018 Notes on Visual Studio We will be using Microsoft Visual Studio 2017 for all of the programming assignments in this class. Visual Studio is available on the campus network. For your
More informationCS708 Lecture Notes. Visual Basic.NET Object-Oriented Programming. Implementing Client/Server Architectures. Part (I of?) (Lecture Notes 5A)
CS708 Lecture Notes Visual Basic.NET Object-Oriented Programming Implementing Client/Server Architectures Part (I of?) (Lecture Notes 5A) Professor: A. Rodriguez CHAPTER 1 IMPLEMENTING CLIENT/SERVER APPLICATIONS...
More informationFirst start a new Windows Form Application from C# and name it Interest Calculator. We need 3 text boxes. 4 labels. 1 button
Create an Interest Calculator with C# In This tutorial we will create an interest calculator in Visual Studio using C# programming Language. Programming is all about maths now we don t need to know every
More informationObject oriented lab /second year / review/lecturer: yasmin maki
1) Examples of method (function): Note: the declaration of any method is : method name ( parameters list ).. Method body.. Access modifier : public,protected, private. Return
More informationINNOVATE. Creating a Windows. service that uses Microsoft Dynamics GP econnect to integrate data. Microsoft Dynamics GP. Article
INNOVATE Microsoft Dynamics GP Creating a Windows service that uses Microsoft Dynamics GP econnect to integrate data Article Create a Windows Service that uses the.net FileSystemWatcher class to monitor
More informationNI USB-TC01 Thermocouple Measurement Device
Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics NI USB-TC01 Thermocouple Measurement Device HANS- PETTER HALVORSEN, 2013.02.18 Faculty of Technology,
More informationIOS Plus Trade - Web Services Version 4 Walkthrough
IOS Plus Trade - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IOS Plus Trade information The purpose of this walkthrough is to build the following Windows Forms Application that
More informationIRESS Depth - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IRESS Depth information
IRESS Depth - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IRESS Depth information The purpose of this walkthrough is to build the following Windows Forms Application that will
More informationImageNow Interact for Microsoft SharePoint Installation, Setup, and User Guide
ImageNow Interact for Microsoft SharePoint Installation, Setup, and User Guide Version: 6.6.x Written by: Product Documentation, R&D Date: ImageNow and CaptureNow are registered trademarks of Perceptive
More informationMapWindow Plug-in Development
MapWindow Plug-in Development Sample Project: Simple Path Analyzer Plug-in A step-by-step guide to creating a custom MapWindow Plug-in using the IPlugin interface by Allen Anselmo shade@turbonet.com Introduction
More informationLab 4: Adding a Windows User-Interface
Lab 4: Adding a Windows User-Interface In this lab, you will cover the following topics: Creating a Form for use with Investment objects Writing event-handler code to interact with Investment objects Using
More informationHOL159 Integrating Microsoft Technologies to Microsoft Dynamics AX 4.0. Hands-On Lab
HOL159 Integrating Microsoft Technologies to Microsoft Dynamics AX 4.0 Hands-On Lab Integrating Microsoft Technologies to Microsoft Dynamics AX 4.0 Lab Manual Table of Contents Lab 1: Deploy Enterprise
More informationCOURSE OUTLINE: OD10267A Introduction to Web Development with Microsoft Visual Studio 2010
Course Name OD10267A Introduction to Web Development with Microsoft Visual Studio 2010 Course Duration 2 Days Course Structure Online Course Overview This course provides knowledge and skills on developing
More informationClass Test 4. Question 1. Use notepad to create a console application that displays a stick figure. See figure 1. Question 2
Class Test 4 Marks will be deducted for each of the following: -5 for each class/program that does not contain your name and student number at the top. -2 If program is named anything other than Question1,
More informationVisual Basic/C# Programming (330)
Page 1 of 12 Visual Basic/C# Programming (330) REGIONAL 2017 Production Portion: Program 1: Calendar Analysis (400 points) TOTAL POINTS (400 points) Judge/Graders: Please double check and verify all scores
More informationUsing NetAdvantage 2005 Volume 2 elements in Windows Sharepoint Services Web Parts Microsoft Windows Sharepoint Services (WSS) is a powerful web-based portal package that many companies have adopted as
More informationPreliminary 1: Download and install the Certificate Authority (CA) certificate
Lab 3:.NET 3.5 Graphical Application Client for secure catissue cagrid Service cabig 2009 Annual Meeting Hack-a-thon University of Virginia escience Group Marty Humphrey, Director Overview: Create a graphical.net
More informationHands-On Lab. Lab: Developing BI Applications. Lab version: Last updated: 2/23/2011
Hands-On Lab Lab: Developing BI Applications Lab version: 1.0.0 Last updated: 2/23/2011 CONTENTS OVERVIEW... 3 EXERCISE 1: USING THE CHARTING WEB PARTS... 5 EXERCISE 2: PERFORMING ANALYSIS WITH EXCEL AND
More informationThe first program we write will display a picture on a Windows screen, with buttons to make the picture appear and disappear.
4 Programming with C#.NET 1 Camera The first program we write will display a picture on a Windows screen, with buttons to make the picture appear and disappear. Begin by loading Microsoft Visual Studio
More informationIntroduction to Web Development with Microsoft Visual Studio 2010
Introduction to Web Development with Microsoft Visual Studio 2010 Course 10267; 5 Days, Instructor-led Course Description This five-day instructor-led course provides knowledge and skills on developing
More informationRepresenting Recursive Relationships Using REP++ TreeView
Representing Recursive Relationships Using REP++ TreeView Author(s): R&D Department Publication date: May 4, 2006 Revision date: May 2010 2010 Consyst SQL Inc. All rights reserved. Representing Recursive
More informationDreamweaver MX The Basics
Chapter 1 Dreamweaver MX 2004 - The Basics COPYRIGHTED MATERIAL Welcome to Dreamweaver MX 2004! Dreamweaver is a powerful Web page creation program created by Macromedia. It s included in the Macromedia
More informationGetting started 7. Setting properties 23
Contents 1 2 3 Getting started 7 Introducing Visual Basic 8 Installing Visual Studio 10 Exploring the IDE 12 Starting a new project 14 Adding a visual control 16 Adding functional code 18 Saving projects
More informationTelerik Corp. Test Studio Standalone & Visual Studio Plug-In Quick-Start Guide
Test Studio Standalone & Visual Studio Plug-In Quick-Start Guide Contents Create your First Test... 3 Standalone Web Test... 3 Standalone WPF Test... 6 Standalone Silverlight Test... 8 Visual Studio Plug-In
More informationHands-On Lab. Instrumentation and Performance -.NET. Lab version: Last updated: December 3, 2010
Hands-On Lab Instrumentation and Performance -.NET Lab version: 1.0.0 Last updated: December 3, 2010 CONTENTS OVERVIEW 3 EXERCISE 1: INSTRUMENTATION USING PERFORMANCE COUNTERS. 5 Task 1 Adding a Class
More information10267 Introduction to Web Development with Microsoft Visual Studio 2010
10267 Introduction to Web Development with Microsoft Visual Studio 2010 Course Number: 10267A Category: Visual Studio 2010 Duration: 5 days Course Description This five-day instructor-led course provides
More informationQuick Guide for the ServoWorks.NET API 2010/7/13
Quick Guide for the ServoWorks.NET API 2010/7/13 This document will guide you through creating a simple sample application that jogs axis 1 in a single direction using Soft Servo Systems ServoWorks.NET
More informationHow to work with data sources and datasets
Chapter 14 How to work with data sources and datasets Objectives Applied Use a data source to get the data that an application requires. Use a DataGridView control to present the data that s retrieved
More informationWriting Your First Autodesk Revit Model Review Plug-In
Writing Your First Autodesk Revit Model Review Plug-In R. Robert Bell Sparling CP5880 The Revit Model Review plug-in is a great tool for checking a Revit model for matching the standards your company has
More informationASP.NET Web Forms Programming Using Visual Basic.NET
ASP.NET Web Forms Programming Using Visual Basic.NET Duration: 35 hours Price: $750 Delivery Option: Attend training via an on-demand, self-paced platform paired with personal instructor facilitation.
More informationStart Visual Studio, create a new project called Helicopter Game and press OK
C# Tutorial Create a helicopter flying and shooting game in visual studio In this tutorial we will create a fun little helicopter game in visual studio. You will be flying the helicopter which can shoot
More informationUsing Template Bookmarks for Automating Microsoft Word Reports
Using Template Bookmarks for Automating Microsoft Word Reports Darryl Bryk U.S. Army RDECOM-TARDEC Warren, MI 48397 Disclaimer: Reference herein to any specific commercial company, product, process, or
More informationCourse Outline: Course 10267A: Introduction to Web Development with Microsoft Visual Studio 2010 Learning Method: Instructor-led Classroom Learning
Course Outline: Course 10267A: Introduction to Web Development with Microsoft Visual Studio 2010 Learning Method: Instructor-led Classroom Learning Duration: 5.00 Day(s)/ 40 hrs Overview: This five-day
More informationTutorial 03 understanding controls : buttons, text boxes
Learning VB.Net Tutorial 03 understanding controls : buttons, text boxes Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple
More informationSQL Server 2005: Reporting Services
SQL Server 2005: Reporting Services Table of Contents SQL Server 2005: Reporting Services...3 Lab Setup...4 Exercise 1 Creating a Report Using the Wizard...5 Exercise 2 Creating a List Report...7 Exercise
More informationPelnor Help Add-in.
Pelnor Help Add-in http://www.pelnor.com/ Pelnor Software Index HelpAddIn 1 Pelnor Help Add-in UserControl... 1 Node Editor...7 URL Link Dialog...10 Inner Document Link Selection Dialog... 11 Help Document
More informationGetting started 7. Setting properties 23
Contents 1 2 3 Getting started 7 Introduction 8 Installing Visual Basic 10 Exploring the IDE 12 Starting a new project 14 Adding a visual control 16 Adding functional code 18 Saving projects 20 Reopening
More informationLab Android Development Environment
Lab Android Development Environment Setting up the ADT, Creating, Running and Debugging Your First Application Objectives: Familiarize yourself with the Android Development Environment Important Note:
More informationCA Clarity Project & Portfolio Manager
CA Clarity Project & Portfolio Manager CA Clarity PPM Connector for Microsoft SharePoint Product Guide v1.1.0 Second Edition This documentation and any related computer software help programs (hereinafter
More informationTRAINING GUIDE FOR OPC SYSTEMS.NET. Simple steps to successful development and deployment. Step by Step Guide
TRAINING GUIDE FOR OPC SYSTEMS.NET Simple steps to successful development and deployment. Step by Step Guide SOFTWARE DEVELOPMENT TRAINING OPC Systems.NET Training Guide Open Automation Software Evergreen,
More informationComposer Help. Import and Export
Composer Help Import and Export 2/7/2018 Import and Export Contents 1 Import and Export 1.1 Importing External Files into Your Composer Project 1.2 Importing Composer Projects into Your Workspace 1.3 Importing
More informationThis is the empty form we will be working with in this game. Look under the properties window and find the following and change them.
We are working on Visual Studio 2010 but this project can be remade in any other version of visual studio. Start a new project in Visual Studio, make this a C# Windows Form Application and name it zombieshooter.
More informationTo get started with Visual Basic 2005, I recommend that you jump right in
In This Chapter Chapter 1 Wading into Visual Basic Seeing where VB fits in with.net Writing your first Visual Basic 2005 program Exploiting the newfound power of VB To get started with Visual Basic 2005,
More informationAbout 1. Chapter 1: Getting started with openxml 2. Remarks 2. Examples 2. Installation of OpenXML SDK and productivity tool on your computer 2
openxml #openxml Table of Contents About 1 Chapter 1: Getting started with openxml 2 Remarks 2 Examples 2 Installation of OpenXML SDK and productivity tool on your computer 2 Create a new Spreadsheet with
More informationBringing Together One ASP.NET
Bringing Together One ASP.NET Overview ASP.NET is a framework for building Web sites, apps and services using specialized technologies such as MVC, Web API and others. With the expansion ASP.NET has seen
More informationVolume CREATIVE DATA TECHNOLOGIES, INC. DATALAYER.NET. Getting Started Guide
Volume 1 CREATIVE DATA TECHNOLOGIES, INC. DATALAYER.NET Getting Started Guide TABLE OF CONTENTS Table of Contents Table of Contents... 1 Chapter 1 - Installation... 2 1.1 Installation Steps... 2 1.1 Creating
More informationEyes of the Dragon - XNA Part 37 Map Editor Revisited
Eyes of the Dragon - XNA Part 37 Map Editor Revisited I'm writing these tutorials for the XNA 4.0 framework. Even though Microsoft has ended support for XNA it still runs on all supported operating systems
More informationChapter 9. Web Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill
Chapter 9 Web Applications McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Chapter Objectives - 1 Explain the functions of the server and the client in Web programming Create a Web
More informationif (say==0) { k.commandtext = "Insert into kullanici(k_adi,sifre) values('" + textbox3.text + "','" + textbox4.text + "')"; k.
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient;
More informationPrint Station. Point-and-Click Printing WHITE PAPER
Print Station Point-and-Click Printing WHITE PAPER Contents Overview 3 Printing with Print Station 4 Easy-to-use Browser Interface 4 Familiar Folder Navigation 5 Search Functionality 6 Informative Display
More informationLearning VB.Net. Tutorial 19 Classes and Inheritance
Learning VB.Net Tutorial 19 Classes and Inheritance Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you
More informationProgramming with ADO.NET
Programming with ADO.NET The Data Cycle The overall task of working with data in an application can be broken down into several top-level processes. For example, before you display data to a user on a
More informationLearning vrealize Orchestrator in action V M U G L A B
Learning vrealize Orchestrator in action V M U G L A B Lab Learning vrealize Orchestrator in action Code examples If you don t feel like typing the code you can download it from the webserver running on
More informationA Quick Tour GETTING STARTED WHAT S IN THIS CHAPTER?
1 A Quick Tour WHAT S IN THIS CHAPTER? Installing and getting started with Visual Studio 2012 Creating and running your fi rst application Debugging and deploying an application Ever since software has
More informationHOW TO BUILD YOUR FIRST ROBOT
Kofax Kapow TM HOW TO BUILD YOUR FIRST ROBOT INSTRUCTION GUIDE Table of Contents How to Make the Most of This Tutorial Series... 1 Part 1: Installing and Licensing Kofax Kapow... 2 Install the Software...
More informationBuilding Datacentric Applications
Chapter 4 Building Datacentric Applications In this chapter: Application: Table Adapters and the BindingSource Class Application: Smart Tags for Data. Application: Parameterized Queries Application: Object
More informationIntegrate WebScheduler to Microsoft SharePoint 2007
Integrate WebScheduler to Microsoft SharePoint 2007 This white paper describes the techniques and walkthrough about integrating WebScheduler to Microsoft SharePoint 2007 as webpart. Prerequisites The following
More informationImportant notice regarding accounts used for installation and configuration
System Requirements Operating System Nintex Reporting 2008 can be installed on Microsoft Windows Server 2003 or 2008 (32 and 64 bit supported for both OS versions). Browser Client Microsoft Internet Explorer
More informationVisual Studio.NET for AutoCAD Programmers
December 2-5, 2003 MGM Grand Hotel Las Vegas Visual Studio.NET for AutoCAD Programmers Speaker Name: Andrew G. Roe, P.E. Class Code: CP32-3 Class Description: In this class, we'll introduce the Visual
More informationMicrosoft Word - Templates
Microsoft Word - Templates Templates & Styles. Microsoft Word come will a large amount of predefined templates designed for you to use, it is also possible to download additional templates from web sites
More informationCOPYRIGHTED MATERIAL. Visual Basic: The Language. Part 1
Part 1 Visual Basic: The Language Chapter 1: Getting Started with Visual Basic 2010 Chapter 2: Handling Data Chapter 3: Visual Basic Programming Essentials COPYRIGHTED MATERIAL Chapter 1 Getting Started
More informationCHAPTER 1 COPYRIGHTED MATERIAL. Finding Your Way in the Inventor Interface
CHAPTER 1 Finding Your Way in the Inventor Interface COPYRIGHTED MATERIAL Understanding Inventor s interface behavior Opening existing files Creating new files Modifying the look and feel of Inventor Managing
More informationGetting Started with CppDepend
How to Get Set Up and Running with CppDepend Whether you have purchased or downloaded the trial of CppDepend, we thank you for your involvement and interest in our product. Here we have compiled a quick
More informationUSING QRULES WITH CUSTOM CODE
Page 1 of 18 USING QRULES WITH CUSTOM CODE PRODUCT: qrules LAST UPDATED: May 7, 2014 qrules v2.2 is the first version of qrules that can co-exist with other form code. If custom code already exists in
More informationSCRIPT REFERENCE. UBot Studio Version 4. The Browser Commands
SCRIPT REFERENCE UBot Studio Version 4 The Browser Commands Navigate This command will navigate to whatever url you insert into the url field within the command. In the section of the command labeled Advanced,
More information